Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2318 Widoki

Hi, this is the a resume of my flow:  fit -> predict, fit in general its almost the same process and use the same data to fit, but every time a need to predict I don't want to fit, I need to maintain the fit object, because I can predict n cases with the same fit data, it's something like the code below:

Fit process:

fit = some_class.fit(data_to_fit)  # fit its an object that has the 'predict' function


Predict process:

y_value_predicted = fit.predict(x_data_to_predict)


Like I said before, I don't want to repeat the fit process any time I want to predict values, I need to keep on memory or save that object to allows me to put that predict process in a service.

Let me know if you need more clarification.

Thanks for your time.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
kwi 24
6144
2
lut 24
3168
2
lip 23
5562
3
lut 23
6719
0
sty 25
7964