Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Prepare rectangular data for use in the machine learning functions Classify, Predict and NetTrain
ResourceFunction["TableToTrainingSet"][data,n] converts a matrix to a list of example→output pairs where the output is taken from column n. | |
ResourceFunction["TableToTrainingSet"][assocs,key] converts associations to a list of example→output pairs where the output is labeled with key. |
Prepare a matrix so that Classify can learn to predict column 3:
In[1]:= |
Out[2]= |
In[3]:= |
Out[3]= |
Prepare an Association so that Predict can learn to predict the "output" values:
In[4]:= |
Out[5]= |
In[6]:= |
Out[6]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License