Skip to content

Instantly share code, notes, and snippets.

@Breta01
Last active April 19, 2023 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Breta01/96f9c3783e18260bb6b512b1c3f94a68 to your computer and use it in GitHub Desktop.
Save Breta01/96f9c3783e18260bb6b512b1c3f94a68 to your computer and use it in GitHub Desktop.
Sample of loading model using FELT Labs
from feltlabs.model import load_model
# Load scikit-learn model
model = load_model("final-model-House Prices.json")
# Data shape must be: (number_of_samples, number_of_features)
data = [
[1980, 2, 2, 2, 0, 0],
[1700, 3, 2, 3, 1, 1],
[2100, 3, 2, 3, 1, 0],
]
result = model.predict(data)
print(result)
# You should see something like: [115900, 107500, 151100]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment