Skip to content

Commit 14f7590

Browse files
committed
exercises instructions
1 parent 04d5cd9 commit 14f7590

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

tutorial/exercises.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,55 @@
11
Exercises
22
=========
33

4+
To do the exercises, copy the content of the 'skeletons' folder as
5+
a new folder named 'workspaces'.
6+
7+
Then fire an ipython shell and run the work-in-progress script with::
8+
9+
>>> %run workspace/exercise_XX_script.py arg1 arg2 arg3
10+
11+
If an exception is triggered, use the ``%debug`` to fire-up a post
12+
mortem ipdb session.
13+
14+
Refine the implementation and iterate until the exercise is solved.
15+
16+
17+
Exercise 1: Sentiment Analysis on movie reviews
18+
-----------------------------------------------
19+
20+
- Write a text classification pipeline to classify movie reviews as either
21+
positive or negative.
22+
23+
- Find a good set of parameters using grid search.
24+
25+
- Evaluate the performance on a held out test set.
26+
27+
28+
Exercise 2: Language identification
29+
-----------------------------------
30+
31+
- Write a text classification pipeline using a custom preprocessor and
32+
CharNGramAnalyzer using data from Wikipedia articles as training set.
33+
34+
- Evaluate the performance on some held out test set.
35+
36+
37+
Exercise 3: CLI text classification utility
38+
-------------------------------------------
39+
40+
Using the results of the previous exercises and the ``cPickle``
41+
module of the standard library, write a command line utility that
42+
detect the language of some text provided on ``stdin`` and estimate
43+
the polarity (positive or negative) if the text is written in
44+
English.
45+
46+
Bonus point if the utility is able to give a confidence level for its
47+
predictions.
48+
49+
50+
Exercise 4: Face recognition
51+
----------------------------
52+
53+
Build a classifier that recognize person on faces pictures from the
54+
Labeled Faces in the Wild dataset.
455

0 commit comments

Comments
 (0)