Random Generator¶
RandomGenerator
¶
Bases: Generator
Random number generator.
Source code in xopt/generators/random.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
__init__(**kwargs)
¶
Initialize the generator.
Source code in xopt/generator.py
119 120 121 122 123 124 | |
add_data(new_data)
¶
update dataframe with results from new evaluations.
This is intended for generators that maintain their own data.
Source code in xopt/generator.py
140 141 142 143 144 145 146 147 148 149 150 | |
generate(n_candidates)
¶
generate uniform random data points
Source code in xopt/generators/random.py
16 17 18 | |
model_dump(*args, **kwargs)
¶
overwrite model dump to remove faux class attrs
Source code in xopt/generator.py
152 153 154 155 156 157 158 159 160 | |
yaml(**kwargs)
¶
serialize first then dump to yaml string
Source code in xopt/pydantic.py
231 232 233 234 235 236 237 238 | |