COMPSCI 1MD3 Lecture Notes - Lecture 22: Scipy, Data Element, Feature Vector

73 views5 pages

Document Summary

Goal: - come up with a rule that classifies inputs based on the classes in the training. We can first convert each animal"s features into a feature vector, with some value representing each feature. Is for classification of text and of more general data in python. To use this, you need to install it yourself. Pip3 install numpy scipy scikit-learn python3 -m pip install numpy scipy scikit-learn sudo pip3 install numpy scipy scikit-learn. Construct feature vectors for the labelled data a. For nltk we need a list, where each element of the list is a tuple containing a dictionary of feature names and values, and a label. Divide the data into two sets: a training set and a testing set. Train a classifier on the training data to develop a model. Use the classifier to predict the labels for the testing data we can run the classifier on a feature vector to see what it predicts.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents