chaaals / is-classify Goto Github PK
View Code? Open in Web Editor NEWIS Lab activity 2
IS Lab activity 2
put all raw data from dataset file into a list for categorizing later
dict[str : set()]
where str
is the category of the data and set()
is the set of data
category_1
data_1
data_2
...
data_n
category_2
data_1
data_2
...
data_n
...
category_n
data_1
data_2
...
data_n
print_to_txt = {
"name" : set("Yamada, Aiko D.", "Nakamura, Yumi R.", "Tanaka, Takeshi T.", "Kobayashi, Mika Y."),
"birthday" : set("1995-07-15", "1988-12-04", "2001-03-22", "1990-09-30"),
"email" : set("[email protected]", "[email protected]", "[email protected]", "[email protected]"),
"cell no." : set("+63-9876543210", "+63-9012345678", "+63-8765432109", "+63-7654321098")
}
Name
Yamada, Aiko D.
Nakamura, Yumi R.
Tanaka, Takeshi T.
Kobayashi, Mika Y.
Birthday
1995-07-15
1988-12-04
2001-03-22
1990-09-30
Email
[email protected]
[email protected]
[email protected]
[email protected]
Cellphone No.
+63-9876543210
+63-9012345678
+63-8765432109
+63-7654321098
Input: list of sets containing data
iterate through values in set
format generated by faker instance: +63-xxxxxxxxxx
first part is country code (+63) and second part is the number with length of 10
check if first part == +63, check if second part is appropriate length
note: use regex
format generated by faker instance: yyyy-mm-dd
can follow strictly the format above or validate different ways to write dates
note: use datetime either way
format generated by faker instance: [email protected]
check if first part has at least 1 char, check if followed by @, check if followed by at least 1 character, check if followed by ".", check if followed by at least two characters
note: use regex
format generated by faker instance: first_name middle_name last_name
note: use string methods
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.