Created
August 11, 2022 06:14
-
-
Save charanhu/5cfdc27fc9184c07c977a9eb728103c6 to your computer and use it in GitHub Desktop.
This file contains 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
# 31,female,25.74,0,no,southeast | |
input_data = (31,1,25.74,0,1,0) | |
#changing input_data to a numpy array | |
input_data_as_numpy_array=np.asarray(input_data) | |
#reshape the array | |
input_data_reshaped=input_data_as_numpy_array.reshape(1,-1) | |
prediction=regressor.predict(input_data_reshaped) | |
print(prediction) | |
print('The insurance cost is USD ', prediction[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment