Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: running LOF with command line and GUI yielded different results

  1. #1
    Join Date
    Mar 2016
    Posts
    2

    Default running LOF with command line and GUI yielded different results

    Dear all:

    I'm using weka developer version 3.7.10.

    i ran LOF on cpu dataset (cpu.arff) with command line and GUI but both yielded different results (different LOF values). I wonder what was wrong with my input in the command line. Can any of you help? Thanks in advance!

    GUI: (default)
    weka.filters.unsupervised.attribute.LOF -min 10 -max 40 -A "weka.core.neighboursearch.LinearNNSearch -A \"weka.core.EuclideanDistance -R first-last\"" -num-slots 1

    Command line:
    java -Xmx512m -classpath "weka.jar;C:\Users\abc\wekafiles\packages\localOutlierFactor\localOutlierFactor.jar" weka.filters.unsupervised.attribute.LOF -min 10 -max 40 -A "weka.core.neighboursearch.LinearNNSearch -A \"weka.core.EuclideanDistance -R first-last\"" -num-slots 1 -i "C:\Users\abc\Desktop\cpu.arff" -o "C:\Users\abc\Desktop\cpu-cli.arff"

    first 5 LOF values with GUI:
    @relation 'cpu-weka.filters.unsupervised.attribute.LOF-min10-max40-Aweka.core.neighboursearch.LinearNNSearch -A \"weka.core.EuclideanDistance -R first-last\"-num-slots1'

    @attribute MYCT numeric
    @attribute MMIN numeric
    @attribute MMAX numeric
    @attribute CACH numeric
    @attribute CHMIN numeric
    @attribute CHMAX numeric
    @attribute class numeric
    @attribute LOF numeric

    @data
    125,256,6000,256,16,128,198,3.240677
    29,8000,32000,32,8,32,269,1.422068
    29,8000,32000,32,8,32,220,1.422068
    29,8000,32000,32,8,32,172,1.422068
    29,8000,16000,32,8,16,132,1.247037
    ...

    First 5 LOF values using CLI:
    @relation 'cpu-weka.filters.unsupervised.attribute.LOF-min10-max40-Aweka.core.neighboursearch.LinearNNSearch -A \"weka.core.EuclideanDistance -R first-last\"-num-slots1'

    @attribute MYCT numeric
    @attribute MMIN numeric
    @attribute MMAX numeric
    @attribute CACH numeric
    @attribute CHMIN numeric
    @attribute CHMAX numeric
    @attribute class numeric
    @attribute LOF numeric

    @data

    125,256,6000,256,16,128,198,3.14571
    29,8000,32000,32,8,32,269,1.378957
    29,8000,32000,32,8,32,220,1.390987
    29,8000,32000,32,8,32,172,1.390664
    29,8000,16000,32,8,16,132,1.274454
    ...

  2. #2
    Join Date
    Aug 2006
    Posts
    1,741

    Default

    Answered over on the weka mailing list:

    http://list.waikato.ac.nz/pipermail/...ch/066386.html

    Cheers,
    Mark.

  3. #3
    Join Date
    Mar 2016
    Posts
    2

    Default

    many thanks for the explanation.
    whenever i change the selection in the drop down menu, the histogram changes. i didn't know the menu serves for another purpose other than visualization. won't even find out if i never try the command line.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.