This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
Releases: fracpete/python-weka-wrapper
Releases · fracpete/python-weka-wrapper
Release v0.3.6
Loader.load_file
method now checks whether the dataset file really exists, otherwise a previously loaded file gets loaded again without an error message (seems to be a Weka issue)- replaced
org.pentaho.packageManagement
withweka.core.packageManagement
as the package management code is now part of Weka rather than a third-party library jvm.start()
no longer tries to load packages and therefore suppresses error message if$HOME/wekafiles/packages
should not yet exist
Release v0.3.5
- added support for
weka.core.BatchPredictor
to classClassifier
in moduleweka.classifiers
- upgraded Weka to revision 12410 (post 3.7.13) to avoid performance bottleneck when using setOptions method
- fixed class
SetupGenerator
from moduleweka.core.classes
- added
load_any_file
method to theweka.core.converters
module - added
save_any_file
method to theweka.core.converters
module - if
GridSearch
instantiation (moduleweka.classifiers
) fails, it now outputs message whether package
installed and JVM with package support started
Release v0.3.4
- added convenience method
create_instances_from_lists
toweka.core.dataset
module to easily create
anInstances
object from numeric lists (x and y) - added
get_object_tags
method toTags
class from moduleweka.core.classes
, to allow obtaining
weka.core.Tag
array from the method of aJavaObject
rather than a static field (MultiSearch) - updated
MultiSearch
wrapper in moduleweka.classifiers
to work with themulti-search
package
version 2016.1.15 or later
Release v0.3.3
- updated to Weka 3.7.13
- documentation now covers the API as well
Release v0.3.2
- The
packages
parameter of theweka.core.jvm.start()
function can be used for specifying an alternative
Weka home directory now as well - added
train_test_split
method toweka.core.Instances
class to easily create train/test splits evaluate_train_test_split
method ofweka.classifiers.Evaluation
class now uses thetrain_test_split
method
Release v0.3.1
- added
get_tags
class method toTags
method for easier instantiation of Tag arrays - added
find
method toTags
class to locateTag
object that matches the string - fixed
__getitem__
and__setitem__
methods of theTags
class - added
GridSearch
meta-classifier with convenience properties to moduleweka.classifiers
- added
SetupGenerator
and various parameter classes toweka.core.classes
- added
MultiSearch
meta-classifier with convenience properties to moduleweka.classifiers
- added
quote
/unquote
andbackquote
/unbackquote
methods toweka.core.classes
module - added
main
method toweka.core.classes
for operations on options: join, split, code - added support for option handling to
weka.core.classes
module
Release v0.3.0
- added method
ndarray_to_instances
toweka.converters
module for converting Numpy 2-dimensional array intoInstances
object - added method
plot_learning_curve
toweka.plot.classifiers
module for creating learning curves for multiple classifiers for a specific metric - added plotting of experiments with
plot_experiment
methid inweka.plot.experiments
module Instance.create_instance
method now takes list of tuples (index, internal float value) when generating sparse instances- added
weka.core.database
module for loading data from a database - added
make_copy
class method toClusterer
class - added
make_copy
class method toAssociator
class - added
make_copy
class method toFilter
class - added
make_copy
class method toDataGenerator
class - most classes (like Classifier and Filter) now have a default classname value in the constructor
- added
TextDirectoryLoader
class toweka.core.converters
- moved all methods from
weka.core.utils
toweka.core.classes
- fixed
Attribute.index_of
method for determining label index - fixed
Attribute.add_string_value
method (used incorrect JNI parameter) create_instance
andcreate_sparse_instance
methods of classInstance
now ensure that list values are float- added
to_help
method toOptionHandler
class which outputs a help string generated from the base class's
globalInfo
andlistOptions
methods - fixed
test_model
method ofEvaluation
class when supplying aPredictionOutput
object (previously generatedNo dataset structure provided!
exception) - added
batch_finished
method toFilter
class for incremental filtering - added
line_plot
method toweka.plot.dataset
module for plotting dataset using internal format (one line plot per instance) - added
is_serializable
property toJavaObject
class - added
has_class
convenience property toInstance
class - added
__repr__
method toJavaObject
classes (simply callstoString()
method) - added
Stemmer
class in moduleweka.core.stemmers
- added
Stopwords
class in moduleweka.core.stopwords
- added
Tokenizer
class in moduleweka.core.tokenizers
- added
StringToWordVector
filter class in moduleweka.filters
- added simple workflow engine (see documentation on Flow)
Release v0.2.2
- added convenience methods
no_class
(to unset class) andhas_class
(class set?) toInstances
class - switched to using faster method objects for methods
classify_instance
/distribution_for_instance
inClassifier
class - switched to using faster method objects for methods
cluster_instance
/distribution_for_instance
inClusterer
class - switched to using faster method objects for methods
class_index
,is_missing
,get/set_value
,get/set_string_value
,weight
inInstance
class - switched to using faster method objects for methods
input
,output
,outputformat
inFilter
class - switched to using faster method objects for methods
attribute
,attribute_by_name
,num_attributes
,num_instances
,class_index
,class_attribute
,set_instance
,get_instance
,add_instance
inInstances
class
Release v0.2.1
- added unit testing framework
- added method
refresh_cache()
toweka/core/packages.py
to allow user to refresh local cache - method
get_classname
inweka.core.utils
now handles Python objects and class objects as well - added convenience method
get_jclass
toweka.core.utils
to instantiate a Java class - added a
JavaArray
wrapper for `arrays, which allows getting/setting elements and iterating - added property
classname
to classJavaObject
for easy access to classname of underlying object - added class method
parse_matlab
for parsing Matlab matrix strings toCostMatrix
class predictions
method ofEvaluation
class now returnNone
if predictions are discardedAssociator.get_capabilities()
method is now a property:Associator.capabilities
- added wrapper classes for Java enums:
weka.core.classes.Enum
- fixed retrieval of
sumSq
inStats
class (used byAttributeStats
) - fixed
cluster_instance
method inClusterer
class - fixed
filter
andclusterer
properties in clusterer classes (SingleClustererEnhancer
,FilteredClusterer
) - added
crossvalidate_model
method toClusterEvaluation
- added
get_prc
method toplot/classifiers.py
for calculating the area under the precision-recall curve Filter.filter
method now handles list ofInstances
objects as well, applying the filter sequentially to all the datasets (allows generation of compatible train/test sets)
Release 0.2.0
NB: This release is not backwards compatible!
- requires
JavaBridge
1.0.9 at least - moved from Java-like get/set (
getIndex()
andsetIndex(int)
) to nicer Python properties - using Python properties (also only read-only ones) wherevere possible
- added
weka.core.version
for accessing the Weka version currently in use - added
jwrapper
andjclasswrapper
methods toJavaObject
class (the mother of all objects in python-weka-wrapper)
to allow generic access to an object's methods: http://pythonhosted.org//javabridge/highlevel.html#wrapping-java-objects-using-reflection - added convenience methods
class_is_last()
andclass_is_first()
toweka.core.Instances
class - added convenience methods
delete_last_attribute()
anddelete_first_attribute()
toweka.core.Instances
class