Skip to content

Commit 900ab82

Browse files
committed
Infer signature fix - no longer needed
1 parent 9d1c8fc commit 900ab82

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/eda/conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/train_random_forest/run.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from sklearn.feature_extraction.text import TfidfVectorizer
1818
from sklearn.impute import SimpleImputer
1919
from sklearn.model_selection import train_test_split
20-
from sklearn.preprocessing import OrdinalEncoder, FunctionTransformer
20+
from sklearn.preprocessing import OrdinalEncoder, FunctionTransformer, OneHotEncoder
2121

2222
import wandb
2323
from 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
######################################

0 commit comments

Comments
 (0)