dice-group / LIMES

Link Discovery Framework for Metric Spaces.
https://limes.demos.dice-research.org/
GNU Affero General Public License v3.0
126 stars 54 forks source link

Fixed hyperparameter conversion from XML for EAGLE #239

Closed TKlerx closed 3 years ago

TKlerx commented 4 years ago

When running LIMES with an XML config and using the EAGLE algorithm, parsing of the hyperparameters fails because the hyperparameters are handed over as strings and cannot be casted directly into Float/Integer/Boolean. The toString() at the end is for making it compatible with setting the parameter directly via API.

Tested with Windows 10 (2004), Java 11 and the following config for EAGLE:

    <MLALGORITHM>
    <NAME>eagle</NAME>
    <TYPE>unsupervised</TYPE>
    <PARAMETER> 
        <NAME>generations</NAME>
        <VALUE>100</VALUE>
    </PARAMETER>
    <PARAMETER> 
        <NAME>population</NAME>
        <VALUE>100</VALUE>
    </PARAMETER>
    <PARAMETER> 
        <NAME>crossover_rate</NAME>
        <VALUE>0.3</VALUE>
    </PARAMETER>
    <PARAMETER> 
        <NAME>preserve_fittest</NAME>
        <VALUE>true</VALUE>
    </PARAMETER>
    </MLALGORITHM>
kvndrsslr commented 3 years ago

Thanks for your contribution. Merged in a separate commit.