Skip to content

Instantly share code, notes, and snippets.

@charanhu
Created August 11, 2022 06:14
Show Gist options
  • Save charanhu/5cfdc27fc9184c07c977a9eb728103c6 to your computer and use it in GitHub Desktop.
Save charanhu/5cfdc27fc9184c07c977a9eb728103c6 to your computer and use it in GitHub Desktop.
# 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