Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multiple outputs for the function compiled by gp.compile #491

@NishanthARao

Description

@NishanthARao

I have a 6-input 2-output problem. Basically, I need to find a function that would map the 6-inputs to the 2-outputs, hence minimizing the error. (Just like symbolic regression, but with multiple output). Here are the following changes that I could do so far:

creator.create("FitnessMax", base.Fitness, weights=(-1.0,-1.0))
creator.create("Individual", list, fitness=creator.FitnessMin)

Now, I need to use the gp.compile tool to create a function func that would return two values of the cost function.

Could you please guide me on how to do this? I saw several examples on multi-objectives, but none of them had the symbolic function involved.

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions