Machine Learning Internship Report
Machine Learning Internship Report
Internship Report
# Data preprocessing
X = loan_data.drop(' loan_status', axis=1) # Features
y = loan_data[' loan_status'] # Target variable
# Feature scaling
scaler = StandardScaler()
X_train_scaled = scaler.fit_transform(X_train)
X_test_scaled = scaler.transform(X_test)
# Model training
model = LogisticRegression()
model.fit(X_train_scaled, y_train)
# Model evaluation
y_pred = model.predict(X_test_scaled)
accuracy = accuracy_score(y_test, y_pred)
print("Accuracy:", accuracy)
print("Classification Report:")
print(classification_report(y_test, y_pred))
# Confusion matrix
cm = confusion_matrix(y_test, y_pred)
plt.figure(figsize=(8, 6))
sns.heatmap(cm, annot=True, cmap='Blues', fmt='g', cbar=False)
plt.xlabel('Predicted labels')
plt.ylabel('True labels')
plt.title('Confusion Matrix')
plt.show()
# ROC curve
y_test_binary = y_test.map({' Approved': 1, ' Rejected': 0})
y_pred_binary = pd.Series(y_pred).map({' Approved': 1, ' Rejected': 0})
fpr, tpr, thresholds = roc_curve(y_test_binary, y_pred_binary)
roc_auc = auc(fpr, tpr)
plt.figure(figsize=(8, 6))
plt.plot(fpr, tpr, color='darkorange', lw=2, label='ROC curve (area = %0.2f)' % roc_auc)
plt.plot([0, 1], [0, 1], color='navy', lw=2, linestyle='--')
plt.xlim([0.0, 1.0])
plt.ylim([0.0, 1.05])
plt.xlabel('False Positive Rate')
plt.ylabel('True Positive Rate')
plt.title('Receiver Operating Characteristic (ROC) Curve')
plt.legend(loc="lower right")
plt.show()
# Correlation matrix
correlation_matrix = loan_data.corr()
# Create heatmap
sns.heatmap(correlation_matrix, annot=True, cmap='coolwarm', fmt=".2f")
# Add title
plt.title('Correlation Heatmap of Wine Quality Dataset')
plt.show()
Conclusion:
This project provided practical experience in building machine learning models from scratch,
focusing on data preprocessing, model training, and evaluation. The loan approval prediction
task helped me better understand binary classification techniques and how they apply to real-
world problems.
https://github.com/Venkatesh4434/ML-mini
Deep Learning Internship
Report
Conclusion:
This project helped me gain hands-on experience with CNNs and deep learning. I learned
how to preprocess image data, build and train CNN models, and evaluate their performance.
https://github.com/Venkatesh4434/DL-INTERN