Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please explain this code # Fitting the ANN to the Training set model.fit(X_train, Y_train , batch_size =15, epochs =5, verbose=0) # Generating Predictions on testing
please explain this code
\# Fitting the ANN to the Training set model.fit(X_train, Y_train , batch_size =15, epochs =5, verbose=0) \# Generating Predictions on testing data Predictions=model.predict(X_test) \# Scaling the predicted Price data back to original price scale Predictions=TargetVarScalerFit.inverse_transform(Predictions) \# Scaling the y_test Price data back to original price scale Y_test_orig=TargetVarScalerFit.inverse_transform(y_test) \# Scaling the test data back to original scale Test_Data=PredictorScalerFit.inverse_transform(X_test) TestingData=pd.DataFrame(data=Test_Data, columns=Predictors) TestingData['Price']=y_test_orig TestingData['PredictedPrice']=Predictions TestingData.head() Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started