File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ dependencies:
88 - matplotlib=3.8.2
99 - pandas=2.1.3
1010 - pip=23.3.1
11- - scikit-learn=1.3 .2
11+ - scikit-learn=1.5 .2
1212 - jupyterlab=4.1.3
1313 - pip :
1414 - mlflow==2.8.1
Original file line number Diff line number Diff line change 1717from sklearn .feature_extraction .text import TfidfVectorizer
1818from sklearn .impute import SimpleImputer
1919from sklearn .model_selection import train_test_split
20- from sklearn .preprocessing import OrdinalEncoder , FunctionTransformer
20+ from sklearn .preprocessing import OrdinalEncoder , FunctionTransformer , OneHotEncoder
2121
2222import wandb
2323from sklearn .ensemble import RandomForestRegressor
@@ -95,10 +95,8 @@ def go(args):
9595 ######################################
9696 # Save the sk_pipe pipeline as a mlflow.sklearn model in the directory "random_forest_dir"
9797 # HINT: use mlflow.sklearn.save_model
98- signature = mlflow .models .infer_signature (X_val , y_pred )
9998 mlflow .sklearn .save_model (
10099 # YOUR CODE HERE
101- signature = signature ,
102100 input_example = X_train .iloc [:5 ]
103101 )
104102 ######################################
You can’t perform that action at this time.
0 commit comments