Code Monkey home page Code Monkey logo

Comments (8)

rlatkows avatar rlatkows commented on August 25, 2024

I'm afraid you are right. Needs to be added. For temporary solution you can use native implementation of rseslib.processing.classification.rules.roughset.RoughSetRuleClassifier with e.g. getRules(),toString().

from rseslib.

nebfield avatar nebfield commented on August 25, 2024

Thanks! As I already have a trained model is there a way to cast a weka.classifiers.rules.RoughSet to a rseslib.processing.classification.rules.roughset.RoughSetRuleClassifier? Or am I best starting from scratch with rseslib?

from rseslib.

awojna avatar awojna commented on August 25, 2024

Hi,

You need to start from scratch by training the native rseslib classifier. It needs to be fixed too.

Arek

from rseslib.

nebfield avatar nebfield commented on August 25, 2024

OK, no problem. Thank you both for all the help.

from rseslib.

awojna avatar awojna commented on August 25, 2024

Hi Ben,

Let us keep the issue open until it is fixed. We will fix it soon in master and close the issue then.

Arek

from rseslib.

nebfield avatar nebfield commented on August 25, 2024

Sorry about that! I have another question:

Thanks to your help I have trained a RoughSetRuleClassifier and extracted the rules. However, I can't work out how to extract the statistics for each rule (e.g. the support). getRules() returns a collection of Rule objects. I think I need RuleWithStatistics objects, but I don't know if it's possible to extract RuleWithStatistics objects from a RoughSetRuleClassifier. calculateStatistics() appears to only return the number of rules in the RoughSetRuleClassifier. Am I missing anything obvious?

from rseslib.

awojna avatar awojna commented on August 25, 2024

Each Rule object from the rough set classifier is actually EqulityDescriptorsRule which implements RuleWithStatistics interface. So you can just use casting:

Rule r = <a rule from rough set classifier>
((RuleWithStatistics)r).getSupport()

from rseslib.

nebfield avatar nebfield commented on August 25, 2024

That works perfectly, thank you.

from rseslib.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.