fix load call to match examples
Browse files
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(
|
| 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 |
|