This is a markdown file to explain how the script works
This file contains 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
!DOCTYPE html> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="https://github.com/mbostock/d3/blob/master/d3.v2.min.js"></script> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
This file contains 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
import sys, os, glob | |
from datetime import datetime | |
sys.path.append(os.environ.get("MAHOUT_CORE")) | |
for jar in glob.glob(os.environ.get("MAHOUT_JAR_DIR") + "/*.jar"): | |
sys.path.append(jar) | |
from org.apache.mahout.common import RandomUtils | |
from org.apache.mahout.cf.taste.common import TasteException | |
from org.apache.mahout.cf.taste.eval import * |