Loading...
By KarnatakaPUCS Team on 7/10/2026
AI is transforming every industry. Understand the fundamentals and explore career opportunities.
AI enables machines to mimic human intelligence.
ML is a subset of AI:
python# Simple ML example with scikit-learn from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier # Load data iris = load_iris() X_train, X_test, y_train, y_test = train_test_split( iris.data, iris.target, test_size=0.2 ) # Train model model = RandomForestClassifier() model.fit(X_train, y_train) # Evaluate accuracy = model.score(X_test, y_test) print(f"Accuracy: {accuracy:.2%}")
Neural networks with multiple layers: