File tree 2 files changed +63
-4
lines changed
2 files changed +63
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Iris Classification Model: Machine learning model that will
2
+ # allow us to classify species of iris flowers. This application
3
+ # will introduce many rudimentary features and concepts of machine
4
+ # learning and is a good use case for these types of models.
5
+
6
+ # Use case: Botanist wants to determine the species of an
7
+ # iris flower based on characteristics of that flower. For
8
+ # instance attributes including petal length, width, etc.
9
+ # are the "features" that determine the classification
10
+ # of a given iris flower.
11
+
12
+ # Import the iris dataset as provided by the sklearn
13
+ # Python module:
14
+ from sklearn .datasets import load_iris
15
+ iris = load_iris ()
16
+
17
+ # Iris object returned is a 'Bunch' object. This is similar to a
18
+ # Python dictionary as it cntains keys and values:
19
+ # print(iris.keys())
20
+
21
+ # Value of DESCR is a description of the dataset.
22
+ # Here are the first few values of the description
23
+ print (iris ['DESCR' ][:200 ] + "\n ..." )
24
+
25
+ # The value with key "target_names" consists of an
26
+ # array of strings with species that we intent to predict.
27
+ iris ['target_names' ]
28
+
Original file line number Diff line number Diff line change @@ -58,16 +58,47 @@ title: "System Design: Photo Sharing Application"
58
58
- Capacity figures obtained from: Educative.
59
59
. . .
60
60
61
- 1.
61
+ 1. 500 million total users. 1 million active users daily.
62
+ . . .
62
63
63
- 2.
64
+ 2. 2 million photos each day with roughly ~23 photos uploaded each second.
65
+ . . .
66
+
67
+ 3. Average photo size will be around ~200KB:
68
+ 2 million * 200 KB = 400 GB
69
+ . . .
70
+
71
+ 4. Total space required (assuming we store photos for 10 years):
72
+ 400 GB * 365 (days) * 10 (years) ~ = 1425 TB
73
+
74
+ # High-level Requirements
75
+
76
+ - Users should be able to:
77
+
78
+ 1 . Upload image.
79
+ . . .
80
+
81
+ 2. Search for image.
82
+ . . .
64
83
65
- 3.
66
84
67
- 4.
85
+ - This will involve some storage solution for:
86
+
87
+ 1 . Storing the images that are uploaded.
88
+ . . .
89
+
90
+ 2. Storing metadata about the images (caption, location, etc.)
91
+
92
+ # Database Design
93
+
94
+ -
95
+
68
96
69
97
# Test
98
+
70
99
-
71
100
72
101
# Further Resources
73
102
103
+ - Content based on:
104
+ [ Designing Instagram by Educative] ( https://www.educative.io/collection/page/5668639101419520/5649050225344512/5673385510043648 )
You can’t perform that action at this time.
0 commit comments