Machine Learning
What is Machine Learning?
What is Machine Learning?
Machine learning is the field of study that gives computers the ability to learn without being explicitly programmed.
What can Machine Learning do for people?
- Data Mining
- Computer vision
- Natural Language Processing
- Handwriting recognition
- Weather Prediction
- , etc.
Types of Machine learning tasks
Type of Machine learning tasks
Type of Machine learning tasks
Type of Machine learning tasks
Supervised Learning
Supervised Learning
- Features
- Labels

Supervised Learning
For Instance: Weather Prediction
Features:
- humidity
- wind velocity
- wind direction
- atmosphere
Supervised Learning
For Instance: Weather Prediction
Labels:
- Binary Classification
Will it rain or not tomorrow?
Label: Rain, Not Rain - Multi-Class Classification
How's the weather tomorrow?
Label: Sunny Rainy Snow - Regression
How' the temperature tomorrow?
Label: The value of temperature
Unsupervised Learning
Unsupervised Learning
There is no "Label".
Clustering Data and Clustering Analysis


Title Text
for post in pol:
pol_x += f.features(post)
X = np.array([non_pol_x, pol_x])
y = np.array([0, 1])
#Multinomial Naive Bayes
from sklearn.naive_bayes import MultinomialNB
clf = MultinomialNB()
clf.fit(X, y)
print("Testing")
test = ["民進黨", "哈哈交大哈哈"]#第一篇是政治文,第二篇不是政治文
for i in test:
print(clf.predict([f.features(i)]))
Example: Classify the post whether it is about politics or not
Supervised Learning
Bayes Algorithm
Thank you for your listening

Text
Code, a bridge connecting between the carbon-based and silicon-based
Machine Learning
By deror1869107
Machine Learning
- 147