0
$\begingroup$

Apologies if this is a noob question, I have been trying to find a hello-world kind of example regarding how to train a model on structured data without much success. Also, have been reading about LLMs getting trained on large datasets with 7-70 billion parameters, though I can't find any tutorial on what those parameters could be and what does it mean by training a model with those parameters.

Let's say you have a structured data in RDBMS - OrderItems with attributes like order id, order date, item id, order by, etc.

Is there a simple example on how to train such a structured data with n or more parameters (not sure what parameter means) and how that makes a difference on the final outcome?

$\endgroup$

1 Answer 1

2
$\begingroup$

First things first, when you see a model being trained on 7-70 or even 140 billion parameters, this refers to the weights and biases of the model. Not sure if you understand this yet, if not I recommend you start with the basics, something like Andrew Ng's Deep Learning specialization

Essentially, the weights and the biases is what is tuned/trained and helps the model learn. Using a simple example, if you have just 1 weight and bias, it would have the equation:

$$ y = w \cdot x + b $$

your goal is to adjust w and b (or in a regular equation of a line, m and b) and get the closest prediction to make this equation true. So you can imagine if the ideal values for w and b are, say, 1 and 2. But they start at a randomly close to 0 number like 0.1 and 0.2. Over time, these numbers of 0.1 and 0.2 will gradually start to increase and head towards those ideal numbers of 1 and 2. This is training.

So when a model has 70 billion parameters, it has 70 billion weights and biases to train in order to reach the ideal value which maps to the very complex function it's trying to solve, because at the end of the day, a neural network is just one really big complex function. Get an input(s), do something to that input(s), give an output(s).

As for your second half of the question, of course resources like this exist. If you go to Kaggle (Popular ML platform), you can find very simple beginner competitions that deals with structured data and is closer to a regression problem, but will help you grasp the basics of neural networks. There are also posted solutions by a bunch of people on all of these competitions. (Some submissions are even tailored for beginner walkthroughs)

The number of parameters in this case, would be the number of separate structured data categories your model would take. In the typical house prediction problem, you could be given the square feet of the house, the year the house was made, how much rooms, how much bathrooms, indoor pool or not, etc. These would all be parameters for your model (and would determine the dimensions of the input layer).

The reason this makes a difference on the final outcome, is because you have more data to work with. If you simply gave a model just the square feet of the house, and asked it to predict the price, you could probably get something reasonable, but it would be nowhere near as accurate compared to a model that had 20 or more unique data points that showed correlation with the price. In this case, it's much easier to learn the pattern and predict the outcome.

Hope this helps!

$\endgroup$
3
  • $\begingroup$ Thanks for your response. I will go through the links shared by you. +1 for your effort and interest. I am though still looking for a hello-world example, hopefully it will be in one of the links you have shared. $\endgroup$ Commented Jun 19 at 13:19
  • $\begingroup$ No problem at all. I mentioned it in the answer, but kaggle is a great platform. If you want a specific problem, this link kaggle.com/code/kareem3egm/learn-machine-learning-faster-1 is a basic introduction to machine learning (not neural networks, not sure if you wanted that specifically). This is for a basic structured data problem, house prediction. $\endgroup$
    – Dylan Todd
    Commented Jun 19 at 13:39
  • 1
    $\begingroup$ great answer dylan $\endgroup$ Commented Jun 20 at 0:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.