ai newsMi., 4. Nov.
EilmeldungGoogle’s first Suncatcher satellite runs an AI workload in orbit

Why Your First ML Model Can’t Talk Like ChatGPT

You train your first machine-learning model. It accepts study hours and sleep hours, then predicts whether a student will pass or fail. Then a reasonable question appears: “If this is AI, why can’t it answer questions like ChatGPT? Would more training data help?” The answer reveals an important dis

dev.toMittwoch 07:19 · 04.11.5 Min. Lesezeit
Bild: dev.to

You train your first machine-learning model. It accepts study hours and sleep hours, then predicts whether a student will pass or fail.

“If this is AI, why can’t it answer questions like ChatGPT? Would more training data help?”

The answer reveals an important distinction: belonging to AI does not mean having every AI capability.

Let’s use this small student predictor to untangle AI, machine learning, deep learning, and ChatGPT—and understand what we actually build when we create an AI application.

Our student predictor has a specific job:

Inputs: study hours and sleep hours ↓ Trained decision tree ↓ Output: a predicted pass-or-fail label Enter fullscreen mode Exit fullscreen mode It is a classifier: a model that predicts which category an input belongs to.

During training, a decision-tree procedure used example records containing the two inputs and their recorded outcomes. It learned questions that help separate the categories.

We chose the method and supplied the examples. We did not manually write every final decision in the trained tree.

That makes this an example of machine learning.

The tiny dataset is useful for demonstrating the process. It does not establish that the model can reliably predict outcomes for real students.

Artificial intelligence └── Machine learning └── Deep learning Enter fullscreen mode Exit fullscreen mode These are nested categories. Studying deep learning means studying one part of machine learning, which is itself part of AI.

AI is the broad field of building systems for tasks associated with intelligence, including planning, reasoning, learning, and working with language.

Not every AI approach learns from examples.

For instance, an expert system could compare crop observations against knowledge and rules supplied by agricultural experts. Search algorithms can explore possible moves in a game.

Also, automatic operation alone does not establish AI. A kettle switching off at a fixed temperature is ordinary automation.

The useful questions are: What does the system do, and how does it make its decisions?

In machine learning, a learning procedure finds patterns in data. The resulting model uses what it learned on new inputs.

Different ML models can perform different tasks:

Our student decision tree belongs here because it learned from example records.

Deep learning uses neural networks with many layers.

These layers contain connected mathematical units. Each layer combines numbers and passes results onward. Training adjusts internal numerical values using examples.

For handwritten-digit recognition, an example might be an image of a handwritten 7 paired with the correct label. The network learns calculations that help predict the digit.

Our decision tree did not use a neural network. It was therefore:

AI → ML → decision tree, but not deep learning.

Deep learning is not automatically the best choice for every problem. The task, available data, computing resources, and measured results should guide the choice.

ChatGPT belongs in a different kind of description: it is a conversational AI product.

Deep-learning models provide its language capabilities. An interface and supporting software make those capabilities available to users.

That is why drawing ChatGPT as another smaller scientific category inside deep learning can be misleading.

AI └── Machine learning └── Deep learning │ └── provides models used by products such as ChatGPT Enter fullscreen mode Exit fullscreen mode A model provides a particular capability.

A product brings capabilities and supporting software together for users.

An LLM, or large language model, is a type of model trained to work with patterns across large amounts of text. The model and the product through which someone uses it are different things.

Suppose we collect many more student records.

Those records might help us investigate or improve the same prediction task, depending on their quality and relevance. They do not automatically change the classifier’s inputs, outputs, or learning task.

The system still receives two numbers and predicts a category.

It has not been trained to interpret an English question and generate a written explanation.

More data alone does not give a model a different kind of capability.

Generating language requires a model suited to that task. Adding a chat box to the predictor’s interface would not change this.

This distinction becomes especially useful when building software.

Student examples + decision-tree training procedure ↓ Trained decision tree Enter fullscreen mode Exit fullscreen mode The trained model is the result We can save the trained tree, load it later, and use it to make predictions.

In the beginner lab, a prediction script loads the saved model and supplies study hours and sleep hours.

We could build a simple web application around it:

User enters two numbers ↓ Application validates the inputs ↓ Model predicts a category ↓ Application displays the result Enter fullscreen mode Exit fullscreen mode The model performs the prediction. The application handles interaction and connects the components.

You can also build an AI application using an existing trained model. Training one yourself is not a requirement for every project.

You still need to check whether its capabilities and results suit your task.

Now explain two things in your own words:

If you can explain those relationships, you understand more than the definitions alone.

“I built an AI application, so I trained a deep-learning model.”

No—and there are two separate assumptions to question.

First, the application might use an existing trained model.

Second, even if the developer trained a model, it could use an ML method other than deep learning.

Building an application, training a model, and choosing a deep-learning method are different decisions.

This article accompanies Chapter 2 of my free AI for Beginners course. The video above explores these ideas through a conversation between Mira and Subra AI.

You can also explore the course on MetaWise.

When you built your first model, which distinction was hardest to understand: AI versus ML, ML versus deep learning, or model versus application?

Quelle: dev.to (dev.to). Original öffnen