quantdata.dysanos.grid.gendysanos.cell_measure_change#
Independent trading-time/expiry policies for utility measure changes.
- class quantdata.dysanos.grid.gendysanos.cell_measure_change.CellMeasureChangeConfig(*, label, source_cache_uid, state_features, risk_aversion, utility, trading_times=10, expiries=7, instruments_per_expiry=21, group='', user_version='0.1', network_config=FeedForwardConfig(activation='SiLU', num_depth=2, num_width=64, use_bias=True))[source]#
Bases:
objectLogical geometry of 70 mutually independent conditional policies.
- network_config: FeedForwardConfig = FeedForwardConfig(activation='SiLU', num_depth=2, num_width=64, use_bias=True)#
- class quantdata.dysanos.grid.gendysanos.cell_measure_change.CellMeasureChangeTrainConfig(*, batch_size=4096, valuation_batch_size=16384, epochs=20000, minimum_epochs=5000, value_update=500, checkpoint_update=2000, lr=0.0003, weight_decay=0.0, compile=True, convergence_points=8, convergence_relative_tolerance=0.0002, seed=82061)[source]#
Bases:
objectOperational training settings which permit checkpoint warm starts.
- class quantdata.dysanos.grid.gendysanos.cell_measure_change.IndependentCellAction(env, *, config, state_mean, state_scale, return_rms)[source]#
Bases:
BaseModelOne unbounded, preconditioned network for every
(t, expiry)cell.- forward(state)[source]#
Forward method.
- Parameters:
data (dict) – Input data dictionary containing tensors for the model. The expected keys and tensor shapes depend on the specific model implementation.
training (bool, default
False) – Whether the model is in training mode.return_what (
BaseModel.ReturnWhat, defaultReturnWhat.LOSS_WEIGHT) – Specifies what the model should return. Options are: -ReturnWhat.LOSS_WEIGHT: return floatloss(with gradient) and floatweight(without gradient) for training. -ReturnWhat.VALUATION: returnloss,weightand a dictionary of additional float metrics. -ReturnWhat.PATHWISE: return pathwise metrics as dictionary.
- class quantdata.dysanos.grid.gendysanos.cell_measure_change.IndependentFeedForward(env, *, cells, num_input, num_output, config)[source]#
Bases:
BaseModelVectorized MLPs with a disjoint parameter slice for every cell.
- forward(value)[source]#
Forward method.
- Parameters:
data (dict) – Input data dictionary containing tensors for the model. The expected keys and tensor shapes depend on the specific model implementation.
training (bool, default
False) – Whether the model is in training mode.return_what (
BaseModel.ReturnWhat, defaultReturnWhat.LOSS_WEIGHT) – Specifies what the model should return. Options are: -ReturnWhat.LOSS_WEIGHT: return floatloss(with gradient) and floatweight(without gradient) for training. -ReturnWhat.VALUATION: returnloss,weightand a dictionary of additional float metrics. -ReturnWhat.PATHWISE: return pathwise metrics as dictionary.