0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ターミナルからweka を使用 --memo

Last updated at Posted at 2017-10-22

目的

wekaの機械学習ツールをターミナルから利用する。

環境

OS: macOS Sierra(10.12.6)
weka: 3.6.10
java: 9.0.1

wekaのpathを確認

weka.jar が置かれているpathを確認する。

terminal
$ pwd
/Applications/weka-3-8-1-oracle-jvm.app/Contents/Java

XMeansの実行

clustering のXMeansを実行する。
<>で囲ってあるのは各自の環境に合わせて修正する。
※ javaをインストールしておくこと。

$ java -cp <path>weka.jar weka.clusterers.XMeans -t <fail.arff>

K-means

-N : クラスターの数

$java -cp <path>weka.jar weka.clusterers.SimpleKMeans -t <filename>.arff -N 2
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?