home Forums # Technical Support Integrating FuzzyLight in our code

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2151
    Unknown
    Member

    We are developing now a demo of our technology, and we are evaluating your fuzzilite and jfuzzylite libraries.
    In order to visualize the input and output we used your qtfuzzylite GUI. It is very useful. For our demo, we need another extra feature: to get all data input (NOT the rules) from a file instead of from keyboard. Can you instruct us how to do that? Or, alternatively, can you send us that part of the code which will enable us to perform this task by ourselves? Can the the graphical results be displayed on web page?

    #2152

    Hi rgranot,

    thank you for your post and interest in fuzzylite.

    To answer your questions,

    (1) You can export the engine to a FuzzyLite Dataset using a custom file for input values.
    (2) Go to File/Export to/FuzzyLite Dataset, and choose the file containing the input values (option From file). See attached Figure below. This way, you will obtain the outputs of your engine with the given inputs in the file. The format of the input file is flexible: each line represents an evaluation, and spaces are utilised to separate the values for each input variable. In line X, The first N values will correspond to the first N input variables, and the remaining values will be ignored.
    (3) The code for fuzzylite is available at github.com/fuzzylite/fuzzylite
    (4) You can create an algorithm or use XSLT to format the resulting FuzzyLite Dataset into HTML.

    FLD exporter - QtFuzzyLite

    Hope this answers your question.

    Cheers.

    #2153

    Hi rgranot,

    thank you for your post and interest in fuzzylite.

    To answer your questions,

    (1) You can export the engine to a FuzzyLite Dataset using a custom file for input values.
    (2) Go to File/Export to/FuzzyLite Dataset, and choose the file containing the input values (option From file). See attached Figure here
    . This way, you will obtain the outputs of your engine with the given inputs in the file. The format of the input file is flexible: each line represents an evaluation, and spaces are utilised to separate the values for each input variable. In line X, The first N values will correspond to the first N input variables, and the remaining values will be ignored.
    (3) The code for fuzzylite is available at github.com/fuzzylite/fuzzylite
    (4) You can create an algorithm or use XSLT to format the resulting FuzzyLite Dataset into HTML.

    Hope this answers your question.

    Cheers.

    #2154
    Unknown
    Member

    Hi Juan,

    You did a wonderful work developing this library.

    Thanks for your prompt response, which I very much appreciate and hope it will enable Our CTO (Ehud) to integrate all peaces developed in one nice Demo.

    We are start-up company in our first investment campaign. Currently, we would just try to develop a demonstration, hoping to impress tentative investors.

    I am looking forward to collaborate with you when we shall have the required budget to develop our product from a PoC to a supportable product.

    Best regards,

    Reuven

    #2155
    Unknown
    Member

    Actually I can use for my Demo Qt-based graphic user interface as an independent module. For the Demo, which analyzed one specific case I input all fuzzy linguistic variables and their Term Sheets, as well as all the Rules I want to consider. To run the control, I need of course to enter variables’ values to be considered, which are the output of our analysis. I would like to read them from a file, since else it takes me an embarrassing long time to type them in.
    I would like to show the control panel as you designed it and discuss the meaning of the output values.

    Can you help us been more specific with your advice?

    Thanks

    Reuven

    #2156

    Hi,

    unfortunately, QtFuzzyLite does not support that yet, but will in the next version.

    The option I suggested using the FLD exporter would take an file of input values and would compute the output values for the system, which would show as in the next figure:

    FldExporter

    In the figure, you see the results computed for the input values in the file located at /tmp/some-values.fld.

    #2158
    Unknown
    Member

    Hi Juan.

    In the option you suggested, using the FLD exporter (i.e. DatasetExporter -> Export from file -> OK) , I have the following questions:
    1. After exporting the file, how can I run al the rules on the imported values?
    2. Will I see any changes in the output variables, as I see it when I put a input variable from keyborad?

    Thanks

    Ehud

    #2162

    Hi Ehud,

    (1) this feature will be available in the next version.
    (2) also in the next version.

    Currently, you can visualise the outputs of any pair of input variables using the Tools/Surface, if that helps.

    If you are interested in seeing the activation of the rules, you could do so from code:

    
    Engine* engine = FllImporter().fromFile("/path/to/file.fll");
    std::ostringstream writer;
    std::ifstream reader("/path/to/values.fld");
    fuzzylite::setLogging(true); //activate logger
    fuzzylite::setDebug(true); //activate debugger to see rules activations
    FldExporter().write(engine, writer, reader); //export values from file
    FL_LOG(writer.str()); //print results;
    

    Let me know if this helps.

    Cheers.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.