Skip to content

Instantly share code, notes, and snippets.

View rimms's full-sized avatar

IMAMASU Ryohei rimms

View GitHub Profile
@rimms
rimms / bin.json
Created September 4, 2014 05:04
NN_with_idf
{
"converter" : {
"string_filter_types": {},
"string_filter_rules":[],
"num_filter_types": {},
"num_filter_rules": [],
"string_types": {
"unigram": { "method": "ngram", "char_num": "1" }
},
"string_rules":[
@rimms
rimms / gist:c30548fa60113474633d
Last active August 29, 2015 14:15
Exception policy of JubaProxy

Exception policy of JubaProxy

Policy

  • 通信先の Server のいずれかから例外(アプリケーション例外、通信レイヤの例外)が返却された場合は、Client へ例外を返却する。
  • Client に返却する例外は、通信先から返却された例外のうち、最もはじめに発生した例外を返却する。
    • ただし、以下のような通信レイヤの例外は、ユーザー(Client)がハンドリングする可能性が高いので、発生した場合にはアプリケーション例外よりも優先的に返却する。
      • リクエストタイムアウト
      • 接続失敗
      • Server からの接続破棄
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" >
<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %X{tid} %-5p [%F:%L] %m%n" />
</layout>
</appender>
@rimms
rimms / anomaly.md
Last active April 19, 2017 12:47
get_status for anomaly

lof and light_lof

  • max_id: current max value of id in storage (useful to understand next id)
  • num_ignored: the number of ids that were ignored by ignore_kth_same_point
  • unlearner's status: See jubatus/jubatus_core#166

lof

  • num_id_master: number of ids in lof_storage::_lof_table
  • num_id_diff: number of ids in lof_storage::_lof_table_diff