Skip to content

document loss function to find the band gap #155

Open
@basnijholt

Description

@basnijholt

Many people have asked me how to do this.

I've recommended them to use the following loss function:

@adaptive.learner.learner1D.uses_nth_neighbors(0)
def abs_min_log_loss(xs, ys):
    from adaptive.learner.learner1D import default_loss
    ys = [np.log(np.abs(y).min()) for y in ys]
    return default_loss(xs, ys)

We should put this in the documentation somewhere.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions