Created
December 11, 2018 18:48
-
-
Save KaleabTessera/7748670022deb4b7487a3b9ea2c0af60 to your computer and use it in GitHub Desktop.
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
# Load model with best rMse and make prediction | |
fileName = "results/" + "bestRegressionModel_" + str(LineaReggressionMetrics.ROOT_MEAN_SQUARED_ERROR.name) + ".sav" | |
bestRegression = joblib.load(fileName) | |
#Example ICO | |
#Format - price_usd,price_btc,total_supply,market_cap_usd,available_supply,usd_raised,eth_price_launch,btc_price_launch,ico_duration,month,day,country | |
example_x = np.array([1.71456,0.00019931,1000000000,905793616,528295082,24000000,297.63,3420.4,7,8,9,182]) | |
y_pred = makePrediction(bestRegression,example_x) | |
print("Predicted value of example ICO after six months: ",y_pred ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment