Add model prediction
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit

This commit is contained in:
Wojciech Jarmosz 2021-05-23 17:44:24 +02:00
parent b42e4c773c
commit fa55fe7670

View File

@ -15,4 +15,4 @@ with open(f'my_model/{input}', 'r') as file:
json_data = json.load(file)['inputs']
data_into_dict = {idx:x for idx, x in enumerate(json_data)}
print(model.predict(pd.DataFrame([data_into_dict])))
print(model(pd.DataFrame([data_into_dict])))