class_docstr: Create a geometric distribution object.
  
  Parameters
  ----------
  prob : Tensor or scalar, default None
      Probability of sampling `1`.
  logit : Tensor or scalar, default None
      The log-odds of sampling `1`.
class_docstr_tok: ["Create","a","geometric","distribution","object",".","Parameters","--","--","--","--","--","prob",":","Tensor","or","scalar",",","default","None","Probability","of","sampling","`","1","`",".","logit",":","Tensor","or","scalar",",","default","None","The","log-odds","of","sampling","`","1","`","."]
code: def log_prob(self, value):
      if self._validate_args:
          self._validate_samples(value)
      prob = self.prob
      return value * np.log1p(-prob) + np.log(prob)
  
file_path: mxnet/python/mxnet/gluon/probability/distributions/geometric.py
imports: from numbers import Number
  from .distribution import Distribution
  from .utils import prob2logit, logit2prob, cached_property, sample_n_shape_converter
  from .constraint import NonNegativeInteger, Interval, Real
  from ....None import np
label_desc: Use image node_id 7 for calling the Geometric obj's underlying member method code with example usage: obj.log_prob(value) and returns: unknown