Skip to content

Instantly share code, notes, and snippets.

View ukantjadia's full-sized avatar
🎯
Focusing

pydustMoon ukantjadia

🎯
Focusing
View GitHub Profile
Property Name Property Description Example Explanation
mainAxisAlignment Specifies how the children should be vertically aligned within a column. MainAxisAlignment.start Aligns the children to the top of the column.
crossAxisAlignment Specifies how the children should be horizontally aligned within a column. CrossAxisAlignment.center Aligns the children to th
Dart 4 hrs 9 mins ████████████████████▋ 98.4%
Other 3 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
YAML 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.3%
Markdown 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.0%
🌞 Morning 56 commits ████▎░░░░░░░░░░░░░░░░ 20.4%
🌆 Daytime 57 commits ████▎░░░░░░░░░░░░░░░░ 20.8%
🌃 Evening 111 commits ████████▌░░░░░░░░░░░░ 40.5%
🌙 Night 50 commits ███▊░░░░░░░░░░░░░░░░░ 18.2%
Jupyter N… +144/ -70 ██████████████▎░░░░░░ 68.1%
Markdown +0/ -76 ██████▋░░░░░░░░░░░░░░ 31.9%
@ukantjadia
ukantjadia / K in KMeans
Last active March 12, 2023 02:16
Elbow Curve Method for finding number of cluster(K) for clustering with Plot
# Elbow Curve Method for finding number of cluster(K) for clustering.
# Taking initially range is from (1,11).
x = df.iloc[:,[0,1,2,3]].values
wcss = []
for i in range(1,11): # we are taking 1,10 values as initial centroids.
kmeans = KMeans(n_clusters = i, init = 'k-means++',max_iter = 300, n_init = 10, random_state = 0)