Update super cores

This commit is contained in:
D-X-Y
2021-03-18 18:32:26 +08:00
parent 63c8bb9bc8
commit eabdd21d97
9 changed files with 209 additions and 18 deletions

View File

@@ -10,6 +10,9 @@ import numpy as np
from typing import Optional
__all__ = ["_EPS", "Space", "Categorical", "Integer", "Continuous"]
_EPS = 1e-9
@@ -54,6 +57,10 @@ class Categorical(Space):
), "default >= {:}".format(len(self._candidates))
assert len(self) > 0, "Please provide at least one candidate"
@property
def candidates(self):
return self._candidates
@property
def determined(self):
if len(self) == 1: