test_svc_model / README.md
yashriva's picture
Update README.md
05104c0
metadata
datasets:
  - scikit-learn/iris
widget:
  structuredData:
    SepalLengthCm:
      - 5.1
      - 4.9
      - 6.2
    SepalWidthCm:
      - 3.5
      - 3
      - 3.4
    PetalLengthCm:
      - 1.4
      - 1.4
      - 5.4
    PetalWidthCm:
      - 0.2
      - 0.2
      - 2.3
tags:
  - tabular-classification

How to use


import joblib
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split

REPO_ID = "d2i-pti-iu/test_svc_model"
FILENAME = "iris_svm.joblib"
model = joblib.load("/d2i-pti-iu/test_svc_model/iris_svm.joblib")
iris = load_iris()

X = iris.data[:3]
labels = model.predict(X)