josiann.parallel.ParallelArgument
- class josiann.parallel.ParallelArgument(positions, nb_evaluations, args=_Nothing.NOTHING)[source]
Object passed to parallel cost functions which holds instructions on what should be computed.
- Parameters:
positions (
ndarray
[Any
,dtype
[Union
[float64
,int64
]]]) – matrix of position vectors at current iterationnb_evaluations (
ndarray
[Any
,dtype
[int64
]]) – array indicating the number of evaluations to compute per position vectorargs (
tuple
[ndarray
[Any
,dtype
[Any
]],...
] (default:NOTHING
)) – parallel arguments
Method generated by attrs for class ParallelArgument.
Attributes
matrix of position vectors at current iteration
array indicating the number of evaluations to compute per position vector
parallel arguments
Array of costs of length equal to the total number of function evaluations required at current iteration.
Convenience attribute for getting formatted tuples of (position vector, parallel arguments ...) repeated as many times as required by nb_evaluations.
Methods
Method generated by attrs for class ParallelArgument.
Attributes
- ParallelArgument.positions:
ndarray
[Any
,dtype
[Union
[float64
,int64
]]]matrix of position vectors at current iteration
- ParallelArgument.nb_evaluations:
ndarray
[Any
,dtype
[int64
]]array indicating the number of evaluations to compute per position vector
- ParallelArgument.result
Array of costs of length equal to the total number of function evaluations required at current iteration.
- ParallelArgument.where_evaluations
Convenience attribute for getting formatted tuples of (position vector, parallel arguments …) repeated as many times as required by nb_evaluations.
Methods
- ParallelArgument.__init__(positions, nb_evaluations, args=_Nothing.NOTHING)
Method generated by attrs for class ParallelArgument.