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
0.00283329 | |
0 |
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
import jubatus | |
from jubatus.common import Datum | |
import random | |
import time | |
cl = jubatus.Anomaly("localhost", 9199, "test", 0) | |
random.seed(1) | |
datum_list = [] | |
datum_length = 100 |
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
-*- coding:utf-8 -*- | |
import jubatus | |
from jubatus.common import Datum | |
import random | |
import time | |
cl = jubatus.Anomaly("localhost", 9199, "test", 0) | |
cl.clear() |
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
Hi, Jubatus guys. | |
We are glad to announce that Jubatus 1.0.6 is now available. | |
This release contains the following feature improvements and bug fixes. | |
* Recommender: Add new APIs which return similar points using a filtering condition. similar_row_from_{id,datum}_and_score returns points which have greater similarity score than user specified score. similar_row_from_{id,datum}_and_rate returns points which have N% highest similarity score of all. Note that updating clients library is necessary to use these APIs. | |
* Fix the problem that build fails on macOS High Sierra. | |
* Jubakit: Drop support for python 2.6. |
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
{ | |
"converter" : { | |
"string_filter_types": {}, | |
"string_filter_rules":[], | |
"num_filter_types": {}, | |
"num_filter_rules": [], | |
"string_types": {}, | |
"string_rules":[ | |
{"key" : "*", "type" : "str", "sample_weight":"bin", "global_weight" : "bin"} | |
], |
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
import subprocess | |
import time | |
import jubatus | |
from jubatus.common import Datum | |
cmd = "jubaanomaly" | |
juba = subprocess.Popen([cmd, "-f", "light_lof.json"]) | |
time.sleep(5) |
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
OutOfData Traceback (most recent call last) | |
<ipython-input-3-d4cacf0e18b0> in <module>() | |
18 m = JubaModel() | |
19 m = m.load_binary(open("/tmp/127.0.0.1_29179_classifier_iris.jubatus", "rb")) | |
---> 20 m = m.transform("nearest_neighbor") | |
21 # Stop the classifier. | |
22 classifier.stop() | |
/home/udagawa/work/jubakit/jubakit/jubakit/model.py in transform(self, service) | |
261 else: |
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
import random | |
import time | |
import jubatus | |
from jubatus.common import Datum | |
def generate_data(num = 10, mu = 1.0, sigma = 1.0): | |
res = [] | |
for i in range(num): | |
x = random.gauss(mu, sigma) |
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
test: inverted_index_test.cpp | |
g++ -O2 -o test inverted_index_test.cpp `pkg-config jubatus-client --libs --cflags jubatus jubatus_core` |
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
from jubatus.common import Datum | |
from jubatus.regression.client import Regression | |
import sys | |
import math | |
def read_file(filename): | |
with open(filename) as f: | |
return f.readlines() | |
def make_datum(line): |
NewerOlder