MLP Support Teacher for Grading
# Step 1: Import libraries import pandas as pd from sklearn . feature_extraction . text import TfidfVectorizer from sklearn . tree import DecisionTreeClassifier from sklearn . model_selection import train_test_split from sklearn import tree import matplotlib . pyplot as plt # Step 2: Create a simple dataset (Question + Subject + Difficulty) data = { 'question' : [ "Explain photosynthesis" , "Define gravity" , "What is chemical bonding" , "Describe kinetic energy" , "Explain mitosis" , "What is quantum mechanics" , "Describe water cycle" , "Explain Ohm's Law" , "What are atoms made of" , "Explain the nervous system" ], 'subject' : [ "Biology" , "Physics" , "Chemistry" , "Physics" , "Biology...