class_docstr: Cast Data as integer (or integer array)
  
  Parameters
  ----------
  deterministic: bool
      if True, the data is rounded to the closest integer, if False, both surrounded
      integers can be sampled inversely proportionally to how close the actual value
      is from the integers.
  
  Example
  -------
  0.2 is cast to 0 in deterministic mode, and either 0 (80% chance) or 1 (20% chance) in
  non-deterministic mode
  
  Usage
  -----
  :code:`param = ng.ops.Int(deterministic=True)(ng.p.Array(shape=(3,)))`
class_docstr_tok: ["Cast","Data","as","integer","(","or","integer","array",")","Parameters","--","--","--","--","--","deterministic",":","bool","if","True",",","the","data","is","rounded","to","the","closest","integer",",","if","False",",","both","surrounded","integers","can","be","sampled","inversely","proportionally","to","how","close","the","actual","value","is","from","the","integers",".","Example","--","--","--","-","0.2","is","cast","to","0","in","deterministic","mode",",","and","either","0","(","80","%","chance",")","or","1","(","20","%","chance",")","in","non-deterministic","mode","Usage","--","--","-",":","code",":","`","param","=","ng.ops.Int","(","deterministic=True",")","(","ng.p.Array","(","shape=","(","3",",",")",")",")","`"]
code: def __init__(self, deterministic: bool = True) -> None:
      super().__init__()
      self.arity: tp.Optional[int] = None
      self.ordered = True
      self.deterministic = deterministic
      self._cache: tp.Optional[np.ndarray] = None
  
imports: import uuid
  import copy
  import bisect
  from enum import Enum
  import numpy
  from nevergrad.common import errors
  import nevergrad.common.typing
label_desc: Use image node_id 1 to create a new Int object from inherited base classes: Layered, Filterable with example: obj = Int(deterministic)