예제 #1
0
파일: plugin.go 프로젝트: sensorbee/jubatus
func init() {
	udf.MustRegisterGlobalUDSCreator("jubaanomaly_light_lof", &anomaly.LightLOFStateCreator{})

	udf.MustRegisterGlobalUDF("jubaanomaly_add_and_get_score", udf.MustConvertGeneric(anomaly.AddAndGetScore))

	udf.MustRegisterGlobalUDF("jubaanomaly_calc_score", udf.MustConvertGeneric(anomaly.CalcScore))
}
예제 #2
0
파일: plugin.go 프로젝트: sensorbee/jubatus
func init() {
	udf.MustRegisterGlobalUDSCreator("jubaclassifier_arow", &classifier.AROWStateCreator{})

	// The name jubaclassify is not only for AROW, but for all classifier algorithms.
	// We have implemented only AROW, so we use the name for arowClassify for now.
	// When we have to implement another classification algorithm, generalize jubaclassify
	// to other algorithms. For example, define classifier.Classifier and adjust all algorithms to it.
	udf.MustRegisterGlobalUDF("jubaclassify", udf.MustConvertGeneric(classifier.AROWClassify))

	// TODO: consider to rename
	udf.MustRegisterGlobalUDF("juba_classified_label", udf.MustConvertGeneric(classifier.ClassifiedLabel))

	udf.MustRegisterGlobalUDF("juba_classified_score", udf.MustConvertGeneric(classifier.ClassifiedScore))
	udf.MustRegisterGlobalUDF("juba_softmax", udf.MustConvertGeneric(math.Softmax))
}
예제 #3
0
파일: plugin.go 프로젝트: sensorbee/nlp
func init() {
	udf.MustRegisterGlobalUDF("nlp_ngram", udf.MustConvertGeneric(nlp.NGram))
	udf.MustRegisterGlobalUDF("nlp_word_ngram",
		udf.MustConvertGeneric(nlp.WordNGram))

	udf.MustRegisterGlobalUDF("nlp_split", udf.MustConvertGeneric(strings.Split))
	udf.MustRegisterGlobalUDF("nlp_remove_empty_word",
		udf.MustConvertGeneric(nlp.RemoveEmptyWord))

	udf.MustRegisterGlobalUDF("nlp_weight_tf",
		udf.MustConvertGeneric(nlp.WeightTF))
	udf.MustRegisterGlobalUDF("nlp_weight_binary",
		udf.MustConvertGeneric(nlp.WeightBinary))
	udf.MustRegisterGlobalUDF("nlp_weight_log_tf",
		udf.MustConvertGeneric(nlp.WeightLogTF))

	udf.MustRegisterGlobalUDF("nlp_to_lower",
		udf.MustConvertGeneric(strings.ToLower))
	udf.MustRegisterGlobalUDF("nlp_to_upper",
		udf.MustConvertGeneric(strings.ToUpper))
}
예제 #4
0
파일: plugin.go 프로젝트: sensorbee/jubatus
func init() {
	udf.MustRegisterGlobalUDSCreator("jubaregression_pa", &regression.PassiveAggressiveStateCreator{})

	udf.MustRegisterGlobalUDF("jubaregression_estimate", udf.MustConvertGeneric(regression.PassiveAggressiveEstimate))
}
예제 #5
0
func init() {
	udf.MustRegisterGlobalUDF("filter_punctuation_marks",
		udf.MustConvertGeneric(ml.FilterPunctuationMarks))
	udf.MustRegisterGlobalUDF("filter_stop_words",
		udf.MustConvertGeneric(ml.FilterStopWords))
}