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
input { | |
stdin { | |
} | |
} | |
filter { | |
csv { | |
columns => ["timestamp","value"] | |
separator => "," | |
convert => { 'value' => 'float' } |
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
#!/usr/bin/env bash | |
#These should be deprecated when things are moved out of the protocol package | |
./gradlew x-pack:protocol:checkStyle | |
./gradlew x-pack:protocol:test | |
./gradlew :client:rest-high-level:checkStyle | |
./gradlew :client:rest-high-level:test | |
./gradlew :client:rest-high-level:integTest -Dtests.class=org.elasticsearch.client.documentation.MlClientDocumentationIT |
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
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/usr/local/include/boost-1_65_1/", | |
"/usr/local/include", | |
"/usr/include" | |
] |
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
PUT _template/template_test | |
{ | |
"index_patterns": ["test*"], | |
"settings": { | |
"number_of_shards": 1 | |
}, | |
"mappings": { | |
"doc": { | |
"dynamic_templates": [ | |
{ |
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
f=load(FILENAME.mat) | |
C = [f.X, f.y] | |
csvwrite(FILENAME.csv, C) |
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
PUT test-bool/ | |
{ | |
"mappings" : { | |
"_doc" : { | |
"properties" : { | |
"my-field" : { | |
"type" : "boolean" | |
}, "my-terms": { | |
"type" : "keyword" | |
} |
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
PUT _scripts/linear_regression_inference | |
{ | |
"script": { | |
"lang": "painless", | |
"source": """ | |
double total = params.intercept; | |
for (int i = 0; i < params.coefs.length; ++i) { | |
total += params.coefs.get(i) * doc[params['x'+i]].value; | |
} | |
return total; |
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 xgboost as xgb | |
from sklearn import datasets | |
from sklearn.metrics import mean_squared_error | |
import m2cgen as m2c | |
diabetes = datasets.load_diabetes() # load data | |
from sklearn.model_selection import train_test_split | |
X_train, X_test, y_train, y_test = train_test_split(diabetes.data, diabetes.target, test_size=0.2, random_state=0) | |
print(diabetes.feature_names) |
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 java.util.AbstractMap; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.regex.Pattern; | |
/** | |
* This class contains the parsing logic for implementing the DRAIN algorithm. |
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
{ | |
"listings-ash" : { | |
"aliases" : { }, | |
"mappings" : { | |
"_meta" : { | |
"created_by" : "ml-file-data-visualizer" | |
}, | |
"properties" : { | |
"@timestamp" : { | |
"type" : "date" |
OlderNewer