mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
use model columns as data
This commit is contained in:
parent
2c8f014258
commit
d7370248a2
1 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,9 @@ def handler(event, context):
|
|||
return {
|
||||
"statusCode": 200,
|
||||
"body": json.dumps(
|
||||
{"message": f"{model.predict(data=pd.DataFrame({'a': [1]}))}"}
|
||||
{
|
||||
"message": f"{model.predict(data=pd.DataFrame(columns=model.model.original_features))}"
|
||||
}
|
||||
),
|
||||
}
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue