Can someone please post few examples on HMM with sample dataset or if thr's
any link to a tutorial
On the web site by Marco Gillies, there is very little specifying how the
input arff/.csv file should be..
"The HMM classifiers only work on sequence data, which in Weka is
represented as a relational
Data instances must have a single, Nominal, class
attribute and a single, relational, sequence attribute. The instances in
this relational attibute may either consist of single, nominal data
instances (in the case of discrete HMMs) or multivariate, numeric attributes
(in the case of gaussian HMMs)."
I am not able to get exactly how should I go forward with this.
Please help me out here..
Well I'm calling SMOTE filter(WeKa) in my algorithm in MOA, it works fine
for some datasets but for some specific datasets it throws an exception
java.lang.IllegalArgumentException: Comparison method violates its general
at java.util.TimSort.mergeLo(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeForceCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
I went through some java forums which gave me pointers here
But i dont know how to get away with this problem...it will be great if
someone could help me out of this.
----- Abhijeet Godase.
The number of support vectors arenot available in Libsvm package in Weka. Please help me how can take number of support vectors for different types SVM as one-class svm, C-SVC and so on.
In the following code I initialize my classifier as K2 but I cant find how
to set estimator in the code using setScoreType(SelectedTag)
can you provide me the details to specify it.
public static void main(String args)
Instances train =
Instances test =
train.setClassIndex(train.numAttributes() - 1);
test.setClassIndex(test.numAttributes() - 1);
BayesNet myBayes = new BayesNet();
K2 myK2= new K2();
< myK2.setScoreType( ); <------------------ How to declare it?
Evaluation eval = new Evaluation(train);
From: Noushin Rezapour Asheghi
Sent: 12 July 2012 12:52
Subject: liblinear feature weights
I have used liblinear in weka for classification and now I want to see the feature weights in the output too. The reason is that I want to know which features are important for which classes. Please Please help me with this problem.
Many thanks in advance,
I need to process data that has a known set of attributes but only some of
these attributes are relevant in each transaction.
I have around 3M transactions.
Each transaction has 10-100 items.
In previous topics there are some examples on using sparse arff format
(where each row only declares the non-zero elements) and -Z flag with
Apriori, which tells it to treat zeros (i.e. first values) as missing/absent
from the item sets.
I have to use FP-Growth, but It seems that FP-Growth doesn't have the method
ZeroAsMissing%28boolean%29> setTreatZeroAsMissing(boolean z)" unlike
Is there a way to use sparse arff format for FP-Growth forcing to treat
zeros (i.e. first values) as missing values?
Thanks for your help
For the life of me, I can't seem to get this filter working. I want to add
a nominal value to the class attribute. This is what I am doing:
Instances myds = DataSource.read(filename);
AddValues addv = new AddValues();
addv.setAttributeIndex("last"); // the class is the last attribute
Instances newDS = Filter.useFilter(myds,addv);
Attribute cAttr = newDS.attribute("class"); // get the class attribute
cAttr.addStringValue("classval"); // add the value
The new class value is never added to the class attribute. Please let me
know what I am doing wrong.
After that, I want to append datasets with different class values but with
The Flow of my Classifiaction is simialr to this :
/---dataSet--> TrainingSetMaker ---trainingSet--\
ArffLoader --< >-->
\---dataSet--> TestSetMaker -------testSet------/
...Random Forests --batchClassifier--> PredictionAppender
But when I open the ArffSaver to save the File , using configure option, I
am unable to enter a file name for the file to be created. Only a directory
and prefix can be specified.
Why is this Happening ? Is there a problem in my flow ?
Thanks In Advance