Install the line_profiler module:
[driti@ubuntu ]$ pip install line_profilerAdd the @profile decorator and run:
[driti@ubuntu ]$ kernprof.py -l -v example.pyInstall the line_profiler module:
[driti@ubuntu ]$ pip install line_profilerAdd the @profile decorator and run:
[driti@ubuntu ]$ kernprof.py -l -v example.py| This gist demonstrates how to create a sequence file (compressed and uncompressed), from a text file. | |
| Includes: | |
| --------- | |
| 1. Input data and script download | |
| 2. Input data-review | |
| 3. Data load commands | |
| 4. Mapper code | |
| 5. Driver code to create the sequence file out of a text file in HDFS | |
| 6. Command to run Java program | 
| ########################################################################## | |
| # -----------------------------------------------------------------------# | |
| # -------------------- Similarity Metrics (CF) --------------------------# | |
| # ---------------------Author: Shaohua Zhang ---------------------------# | |
| ########################################################################## | |
| # sample data 1 | |
| Mov1 <- c(4,4,3,4,2) | |
| Mov2 <- c(NA,2,NA,4,1) |