Skip to main content

The python-weka-wrapper package makes it easy to run Weka algorithms and filters from within Python. It offers access to Weka API using thin wrappers around JNI calls using the javabridge package.

Changelog

0.2.2 (2015-01-05)

  • added convenience methods no_class (to unset class) and has_class (class set?) to Instances class

  • switched to using faster method objects for methods classify_instance/distribution_for_instance in Classifier class

  • switched to using faster method objects for methods cluster_instance/distribution_for_instance in Clusterer class

  • switched to using faster method objects for methods class_index, is_missing, get/set_value, get/set_string_value, weight in Instance class

  • switched to using faster method objects for methods input, output, outputformat in Filter 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 in Instances class

0.2.1 (2015-01-05)

  • added unit testing framework

  • added method refresh_cache() to weka/core/packages.py to allow user to refresh local cache

  • method get_classname in weka.core.utils now handles Python objects and class objects as well

  • added convenience method get_jclass to weka.core.utils to instantiate a Java class

  • added a JavaArray wrapper for arrays, which allows getting/setting elements and iterating

  • added property classname to class JavaObject for easy access to classname of underlying object

  • added class method parse_matlab for parsing Matlab matrix strings to CostMatrix class

  • predictions method of Evaluation class now return None if predictions are discarded

  • Associator.get_capabilities() method is now a property: Associator.capabilities

  • added wrapper classes for Java enums: weka.core.classes.Enum

  • fixed retrieval of sumSq in Stats class (used by AttributeStats)

  • fixed cluster_instance method in Clusterer class

  • fixed filter and clusterer properties in clusterer classes (SingleClustererEnhancer, FilteredClusterer)

  • added crossvalidate_model method to ClusterEvaluation

  • added get_prc method to plot/classifiers.py for calculating the area under the precision-recall curve

  • Filter.filter method now handles list of Instances objects as well, applying the filter sequentially to all the datasets (allows generation of compatible train/test sets)

0.2.0 (2014-12-22)

NB: This release is not backwards compatible!

  • requires JavaBridge 1.0.9 at least

  • moved from Java-like get/set (getIndex() and setIndex(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 and jclasswrapper methods to JavaObject 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() and class_is_first() to weka.core.Instances class

  • added convenience methods delete_last_attribute() and delete_first_attribute() to weka.core.Instances class

Older releases

https://github.com/fracpete/python-weka-wrapper/blob/7fd0bba3c74277313eb463e338c1a7e117a1ea22/CHANGES.rst

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-weka-wrapper-0.2.2.tar.gz (52.3 kB view details)

Uploaded Source

File details

Details for the file python-weka-wrapper-0.2.2.tar.gz.

File metadata

File hashes

Hashes for python-weka-wrapper-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ea7e1a6fbba0165b9e50f66b7974195c02ad952c435ea883c8cfe1adde8191ec
MD5 2b15ba32d8487458b14b298b75c65ac9
BLAKE2b-256 63e3f50c0f8536fd5424213286ba0582a0da0491ac0bb163f83117a830f7cba5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.18

1 file

0.3.17

1 file

0.3.16

1 file

0.3.15

1 file

0.3.14

1 file

0.3.13

1 file

0.3.12

1 file

0.3.11

1 file

0.3.10

1 file

0.3.9

1 file

0.3.8

1 file

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

This release

0.2.2 This release

1 file

0.2.1

1 file

0.2.0

1 file

0.1.17

1 file

0.1.16

1 file

0.1.15

1 file

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page