lighttuner.hpo.space

BaseSpace

class lighttuner.hpo.space.BaseSpace[source]
Overview:

Base class of spaces.

Warning

This is an abstract class, do not use.

property count

Count of elements in space.

property length

Length of space.

ContinuousSpace

class lighttuner.hpo.space.ContinuousSpace(lower, upper)[source]
Overview:

Continuous space.

__init__(lower, upper)[source]

Constructor of ContinuousSpace.

Parameters:
  • lower – Left bound.

  • upper – Right bound.

property count

Count of elements in space.

property length

Length of space.

SeparateSpace

class lighttuner.hpo.space.SeparateSpace(start, end, step)[source]
Overview:

Separated space.

__init__(start, end, step)[source]

Constructor of SeparateSpace.

Parameters:
  • start – Start value.

  • end – End value.

  • step – Step interval.

property count

Count of elements in space.

property length

Length of space.

FixedSpace

class lighttuner.hpo.space.FixedSpace(n)[source]
Overview:

Fixed space.

Note

Can be used to drive the enumeration.

__init__(n)[source]

Constructor of FixedSpace.

Parameters:

n – Count of values.

property count

Count of elements in space.

property length

Length of space.