"/home/fadi/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names\n",
"/home/fadi/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but RandomForestRegressor was fitted with feature names\n",
File ~/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/xgboost/core.py:730, in require_keyword_args.<locals>.throw_if.<locals>.inner_f(*args, **kwargs)
728 for k, arg in zip(sig.parameters, args):
729 kwargs[k] = arg
--> 730 return func(**kwargs)
File ~/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/xgboost/sklearn.py:1090, in XGBModel.fit(self, X, y, sample_weight, base_margin, eval_set, eval_metric, early_stopping_rounds, verbose, xgb_model, sample_weight_eval_set, base_margin_eval_set, feature_weights, callbacks)
File ~/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/xgboost/core.py:730, in require_keyword_args.<locals>.throw_if.<locals>.inner_f(*args, **kwargs)
2056 pred = self.predict(dtrain, output_margin=True, training=True)
KeyboardInterrupt:
%% Cell type:code id: tags:
``` python
y_pred2=model2.predict(X_test)
mse2=mean_squared_error(y_test,y_pred2)
r22=r2_score(y_test,y_pred2)
print("Mean Squared Error:",mse2)
print("R^2 Score:",r22)
```
%% Output
Mean Squared Error: 303969.39467222965
R^2 Score: 0.9810397750590555
%% Cell type:code id: tags:
``` python
fromsklearn.neural_networkimportMLPRegressor
model4=MLPRegressor(random_state=42,max_iter=500)
# model4.fit(X_train, y_train)
```
%% Output
/home/fadi/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/sklearn/neural_network/_multilayer_perceptron.py:691: ConvergenceWarning: Stochastic Optimizer: Maximum iterations (500) reached and the optimization hasn't converged yet.
/home/fadi/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names
/home/fadi/Desktop/dev/sas2/clone2/ws-23-sas-02/sas2/lib/python3.10/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but RandomForestRegressor was fitted with feature names