![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
jubaclient
Advanced tools
Readme
Jubatus CLI client (unofficial)
# installation
npm install -g jubaclient
# startup jubaclassifier
jubaclassifier -f ./config.json -D
# classifier#train()
echo '[ [ [ "baz", [ [ [ "foo", "bar" ] ] ] ] ] ]' | \
jubaclient classifier train | jq '.'
npm install -g jubaclient
jubaclient service method [-p port] [-h host] [-n name] [-t timeoutSeconds]
The jubaclient
command requests JSON received from standard input with the specified method to the Jubatus server, and returns the response to the standard output.
The command line options are as follows:
service
: sevice name (classifier
, nearest_neighbor
, etc.)method
: service method (get_status
, train
, get_k_center
, etc.)-p port
: port number (default 9190
)-h host
: hostname (default localhost
)-n name
: name of target cluster (default ''
)-t timeoutSeconds
: timeout (default 0
)echo '[ "jubaclient_save_1" ]' | jubaclient classifier save
echo '[]' | jubaclient classifier get_status | jq '.'
echo '[]' | jubaclient classifier get_config | jq '.|fromjson'
jubaclient classifier train <<EOF | jq '.'
[ [ [ "corge", [ [ [ "message", "<p>foo</p>" ] ] ] ] ] ]
[ [ [ "corge", [ [ [ "message", "<p>bar</p>" ] ] ] ] ] ]
[ [ [ "corge", [ [ [ "message", "<p>baz</p>" ] ] ] ] ] ]
[ [ [ "grault", [ [ [ "message", "<p>qux</p>" ] ] ] ] ] ]
[ [ [ "grault", [ [ [ "message", "<p>quux</p>" ] ] ] ] ] ]
EOF
jubaclient classifier classify <<EOF | jq '.'
[ [ [ [ [ "message", "<b>quuz</b>" ] ] ] ] ]
EOF
See also http://jubat.us/en/tutorial/classifier.html
start jubaclassifier
process.
jubaclassifier -D --configpath gender.json
train
cat train.csv \
| jq -RcM 'split(",")|[[[.[0],[[["hair",.[1]],["top",.[2]],["bottom",.[3]]],[["height",(.[4]|tonumber)]]]]]]' \
| jubaclient classifier train
classify
cat classify.csv \
| jq -RcM 'split(",")|[[[[["hair",.[0]],["top",.[1]],["bottom",.[2]]],[["height",(.[3]|tonumber)]]]]]' \
| jubaclient classifier classify \
| jq '.[]|max_by(.[1])'
configure: gender.json
{
"method": "AROW",
"converter": {
"num_filter_types": {}, "num_filter_rules": [],
"string_filter_types": {}, "string_filter_rules": [],
"num_types": {}, "num_rules": [],
"string_types": {
"unigram": { "method": "ngram", "char_num": "1" }
},
"string_rules": [
{ "key": "*", "type": "unigram", "sample_weight": "bin", "global_weight": "bin" }
]
},
"parameter": { "regularization_weight" : 1.0 }
}
training data: train.csv
male,short,sweater,jeans,1.70
female,long,shirt,skirt,1.56
male,short,jacket,chino,1.65
female,short,T shirt,jeans,1.72
male,long,T shirt,jeans,1.82
female,long,jacket,skirt,1.43
test data: classify.csv
short,T shirt,jeans,1.81
long,shirt,skirt,1.50
FAQs
Jubatus CLI client (unofficial)
The npm package jubaclient receives a total of 0 weekly downloads. As such, jubaclient popularity was classified as not popular.
We found that jubaclient demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.