i cant figure aou where im doing wrong,`
from sklearn.neural_network import MLPRegressor
from sklearn.preprocessing import RobustScaler
import pandas as pd
import yfinance as yf
import numpy as np
from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error, median_absolute_error
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
import matplotlib.pyplot as plt
from sklearn.model_selection import TimeSeriesSplit, StratifiedKFold, KFold, train_test_split, cross_val_score, GridSearchCV, ShuffleSplit
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten, Dense
from scikit_keras import KerasClassifier
i installed all the packages using pip command and also as suggested in other post i used
pip install patchify
but still get error
xception has occurred: ModuleNotFoundError No module named 'scikit_keras'
next i give a list of all package version
Name: scikit-learn Version: 1.2.0 Name: pandas Version: 1.5.2 Name: yfinance Version: 0.1.90 Name: numpy Version: 1.23.5 Name: tensorflow Version: 2.11.0 Name: keras Version: 2.11.0
CodePudding user response:
It looks like you installed scikit-keras
which implements a KerasClassifier
.
Which means the last line should be:
from skkeras import KerasClassifier