Update app.py
Browse files44 unmodified lines4546474849505144 unmodified linesX, y_encoded, test_size=0.2, random_state=42, stratify=y_encoded)# Model pipelinemodel = Pipeline([('preprocessor', preprocessor),('classifier', RandomForestClassifier(44 unmodified lines4546474849505144 unmodified linesX, y_encoded, test_size=0.2, random_state=42, stratify=y_encoded)# Model pipeline: class_weight='balanced' adjusts weights inversely proportional to class frequencies. This is crucial if your Program classes (target variable) are imbalanced (e.g., more "Progressivism" students than "Perennialism").model = Pipeline([('preprocessor', preprocessor),('classifier', RandomForestClassifier(
app.py+1-1