4. Predicting¶
After the model is fitted, we can use it to predict on new data.
Tip
You can pass just a file to the model. We’ll extract data from it automatically.
df_to_predict = pd.read_csv('https://raw.githubusercontent.com/dan0nchik/SAP-HANA-AutoML/dev/data/bank_test.csv', index_col='Unnamed: 0')
predictions = model.predict(df=df_to_predict,
table_name='PREDICTION', # dataset will be loaded in this table in HANA
id_column='ID',
verbose=1) # level of output
Again, this is just a code snippet, more information about this function you can access at hana_automl.automl.AutoML.predict()
For real-life examples of usage, please visit Examples