ArogyaSathi: Empowering Healthcare with Predictive Analytics
2
stars
1
forks
source link
ValueError: Error: Input data is not in a valid format. Please confirm that the input data is scikit-learn compatible. For example, the features must be a 2-D array and target labels must be a 1-D array. #1
from tpot import TPOTClassifier from sklearn.preprocessing import LabelEncoder def disease_prediction(X_train, y_train, X_test, y_test, X_Pred, multi_class=False):
augmented_df = augment_data(resampled) data['dataset'] = augmented_df augmented_df = augmented_df.drop(columns = [label_column])
Split Train, Test dataset to determine Metrics and then predict the input aswell and give ExAI for that
X_train, X_test, y_train, y_test = train_test_split(augmented_df, data['dataset'][label_column]) disease_prediction(X_train, y_train, X_test, y_test, X_Pred, multi_class=data['multi_class'])
full code:https://github.com/dharaneishvc/ArogyaSathi/blob/main/final_code_new.ipynb