kashif HF Staff commited on
Commit
75e0b90
·
verified ·
1 Parent(s): 0df075f

fix load call to match examples

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -34,10 +34,9 @@ pip install tabfm[pytorch]
34
  ```python
35
  from tabfm import TabFMClassifier, tabfm_v1_0_0_pytorch as tabfm_v1_0_0
36
 
37
- model = tabfm_v1_0_0.load() # downloads classification weights automatically
38
  clf = TabFMClassifier(model=model)
39
  clf.fit(X_train, y_train)
40
- preds = clf.predict(X_test)
41
  probs = clf.predict_proba(X_test)
42
  ```
43
 
 
34
  ```python
35
  from tabfm import TabFMClassifier, tabfm_v1_0_0_pytorch as tabfm_v1_0_0
36
 
37
+ model = tabfm_v1_0_0.load(model_type="classification")
38
  clf = TabFMClassifier(model=model)
39
  clf.fit(X_train, y_train)
 
40
  probs = clf.predict_proba(X_test)
41
  ```
42