fuzzylite / jfuzzylite Goto Github PK
View Code? Open in Web Editor NEWjfuzzylite: a fuzzy logic control library in Java
Home Page: https://fuzzylite.com/
License: GNU General Public License v3.0
jfuzzylite: a fuzzy logic control library in Java
Home Page: https://fuzzylite.com/
License: GNU General Public License v3.0
Hello, I have been searching for a Fuzzy Logic related Java project and found this.
Can I use this API to create rules giving it some data?
Thank you in advance.
Hello Dr,
first of all, thanks a lot for your wonderful work on jfuzzylite. It has really helped me a lot in my project. I have realized that the probabilities of the output for the terms of an output variable does not always add up to 1 and I would want you to assist me with a clarification on that.
Thanks.
jfuzzylite 5.0 has a bug when using multiple propositions in antecedents joined by fuzzy operators AND and OR. This bug was fixed in jfuzzylite 5.0.1, which was submitted (multiple times) to Maven, but for strange reasons has not been updated in the central repository. Until then, the library must be downloaded manually from http://www.fuzzylite.com/downloads or from the git releases.
The error in jfuzzylite 5.0 occurs as follows:
Exception in thread "main" java.lang.RuntimeException: [syntax error] logical operator expects two operands, but found <3>
at com.fuzzylite.rule.Antecedent.load(Antecedent.java:246)
at com.fuzzylite.rule.Rule.load(Rule.java:203)
at com.fuzzylite.rule.Rule.parse(Rule.java:219)
I'm trying to use the next code in Java for Android:
InputStream inputStream = context.getAssets().open("FuzzyRules.fll");
String content = IOUtils.toString(inputStream);
Engine engine = new FllImporter().fromString(content);
The content of file is the example ObstacleAvoidance (I just copy and paste). I validated the content in String and it is correct. I get and error when the Engine is built. The error obtained is:
java.lang.RuntimeException: [import error] expected a colon at here:
Is there any clue about that Error? thanks
The classes relevant to the Engine
need to be Serializable in order for distributed systems to serialize and share FuzzyLite objects. For example, refer to http://mmolimar.blogspot.co.nz/2015/03/custom-trident-functions-in-apache-storm.html
new Function().toPostfix("if ((Ambient is DARK)) then Power is HIGH");
produces a NullPointerException
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.