Last active
April 19, 2023 04:12
-
-
Save Breta01/96f9c3783e18260bb6b512b1c3f94a68 to your computer and use it in GitHub Desktop.
Sample of loading model using FELT Labs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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