-
安裝 easy_install, pip
yum install python-setuptools easy_install pip
-
安裝 pexpect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import random | |
| prob = { | |
| 'a': (0, 0.4), | |
| 'b': (0.4, 0.3), | |
| 'c': (0.7, 0.2), | |
| '@': (0.9, 0.1) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import numpy as np | |
| import matplotlib | |
| matplotlib.use('TkAgg') # Required for Mac OSX | |
| import matplotlib.pyplot as plt | |
| import matplotlib.animation as animation | |
| import logging.config | |
| from settings import LOGGING |
CountVectorizerseems a bit dense and tries to do too much. This is not a bad thing but from a design viewpoint, it could benefit from making use of thePipelineframework and separately define thepreprocessorandtokenizeror even justanalyzeras transformers in and of themselves and defineCountVectorizeras a pipeline of these operatons. Should conform or make use of existing frameworks where possible rather than extending functionality to allow for exceptions.- Functions from the
metricmodule such asconfusion_matrixandclassification_reportought to support cross-validation by perhaps allowing acvparameter. This might be awkward given that we already havecross_val_scoreandlearning_curveand those are supposed to be the functions which take care of cross validation scoring. It might make sense to useconfusion_matrixas the scoring function forcross_val_scorebut the latter only accepts scoring functions which return a single value so that won't work. The other t
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Core Sentiment Analysis Package
- Documentation, specifically docstrings. Set-up sphinx to organize documentation.
- Data loader need to refactored to respond gracefully to faults in the provided datasets.
- Helper function for concatenating train, dev and test data and providing the CV params (important/useful for
learning_curveor other methods that only accept a single set of data with cross-validation parameters.) - Turn the miscellaneous scripts into either package scripts or helper methods
- Clean up the IPython Notebooks and they can all be executed with "run all" and remove old/irrelevant ones
- Provide Cookbook with useful snippets
- Fix the package installer (
setup.py) to support one-click install, so when the package is distributed, it will install everything required, including e.g. NLTK Copora, etc. - Refactor code so all components are consistent. So far,
data.pyandfeature_extraction.pyare fully up-to-date and compliant with the design philosophy, but n
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % Structured General Purpose Assignment | |
| % LaTeX Template | |
| % | |
| % This template has been downloaded from: | |
| % http://www.latextemplates.com | |
| % | |
| % Original author: | |
| % Ted Pavlic (http://www.tedpavlic.com) | |
| % |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int sys_sbrk(__intptr_t change, void **retval) { | |
| struct addrspace *as = proc_getas(); | |
| if (as == NULL) { | |
| return EFAULT; | |
| } | |
| vaddr_t heapbreak = as->as_heapvbase + as->as_heapsize; | |
| // we're not checking page alignment of | |
| // change (amount) here or anything |
- lect07 (Slide 30-36) Review Classic File Organization methods
- lect16 (140513) 1:24: Top/bottom interrupt handling
- lect16 (140514) 0:10: Drivers are re-entrant
- lect16 (140514) Read up on the various I/O buffering in Tanenbaum
- lect17 (140520) Why favour I/O bound processes over CPU-bound processes?
- lect17 (140520) 00:31 Traditional UNIX scheduler (how priorities self-adjust with clock ticks etc.)
- lect17 (140520) 00:48 (Slide 62) Formula for scheduling
- lect17 (140520) 1:48 Why exactly do we favour Rate Monotonic scheduling other than that it is easier to implement (why is it easier to implement?)
- lect18 (Slide 12) What is the per-CPU private memory used for exactly?