Skip to content

Commit

Permalink
Create advanced_data_analytics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 3, 2024
1 parent ba01ee3 commit 489f3f7
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import pandas as pd
import numpy as np
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE

# Load course metrics data
course_metrics = pd.read_csv('data/course_metrics.csv')

# Define advanced data analytics function
def analyze_course_metrics(course_metrics):
# Extract features from course metrics
features = np.array([course_metrics['feature1'], course_metrics['feature2'], ...])

# Apply PCA to reduce dimensionality
pca = PCA(n_components=3)
features_pca = pca.fit_transform(features)

# Apply t-SNE to reduce dimensionality further
tsne = TSNE(n_components=2)
features_tsne = tsne.fit_transform(features_pca)

# Return analyzed course metrics
return features_tsne

0 comments on commit 489f3f7

Please sign in to comment.