Skip to content

Commit f8fe149

Browse files
committed
refactor: replace model fitting with dedicated fit_model function in process_and_predict
1 parent dfcc0c1 commit f8fe149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbos_fct/badi/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def process_and_predict(
228228
raise HTTPException(status_code=500, detail="Model history not found")
229229
history = history.filter(df.columns)
230230
updated_df = pd.concat([history, df], ignore_index=True).drop_duplicates()
231-
model.fit(updated_df)
231+
model = fit_model(updated_df)
232232
except (AssertionError, HTTPException):
233233
model = fit_model(df)
234234
else:

0 commit comments

Comments
 (0)