Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Migration to jfuzzylite #6269
    Andrey Herchonvicz
    Andrey Herchonvicz
    Participant

    It worked! Thank you Juan.

    in reply to: Migration to jfuzzylite #6265
    Andrey Herchonvicz
    Andrey Herchonvicz
    Participant

    Hi Juan,

    Here is the generated R code by jfuzzylite.

    When you run this code the following error occurs:

    Error in textConnection(engine.fld) : object 'engine.fld' not found

    So I changed from “engine.fld” to “engine.fldFile” on line 1075. But the original error still persists:

    Error: Discrete value supplied to continuous scale
    In addition: Warning message:
      Error: Discrete value supplied to continuous scale
    in reply to: Migration to jfuzzylite #6263
    Andrey Herchonvicz
    Andrey Herchonvicz
    Participant

    Solved. The error was in Ramp values:

    
    distance.addTerm(new Ramp("low", 0.0, 20.0));
    proximity.addTerm(new Ramp("immediate", 0.0, 30.0));
    

    Should be:

    
    distance.addTerm(new Ramp("low", 20.0, 0.0));
    proximity.addTerm(new Ramp("immediate", 30.0, 0.0));
    

    But, I find another issue. I’m exporting this code to R:

    
    RScriptExporter exporter = new RScriptExporter();
    exporter.toFile(new File("plot.r"), engine);
    

    When I’m trying to execute, RStudio gives me the following error:

    
    Error: Discrete value supplied to continuous scale
    In addition: Warning message:
      Error: Discrete value supplied to continuous scale 
    
Viewing 3 posts - 1 through 3 (of 3 total)