docstr: Compare major.minor.micro main version segment numbers
  
  Parameters
  ----------
  other: HHVersion
      HyperparameterHunter version object with which to compare self
  
  Returns
  -------
  Integer in {0, 1, -1}
      * 0 if `self` and `other` have equivalent main version segments
      * 1 if `self` main version is greater than that of `other`
      * -1 if `other` main version is greater than that of `self`
docstr_tok: ["Compare","major.minor.micro","main","version","segment","numbers","Parameters","--","--","--","--","--","other",":","HHVersion","HyperparameterHunter","version","object","with","which","to","compare","self","Returns","--","--","--","-","Integer","in","{","0",",","1",",","-1","}","*","0","if","`","self","`","and","`","other","`","have","equivalent","main","version","segments","*","1","if","`","self","`","main","version","is","greater","than","that","of","`","other","`","*","-1","if","`","other","`","main","version","is","greater","than","that","of","`","self","`"]
code: def _compare_main_version(self, other: "HHVersion") -> int:
      """Compare major.minor.micro main version segment numbers
  
      Parameters
      ----------
      other: HHVersion
          HyperparameterHunter version object with which to compare self
  
      Returns
      -------
      Integer in {0, 1, -1}
          * 0 if `self` and `other` have equivalent main version segments
          * 1 if `self` main version is greater than that of `other`
          * -1 if `other` main version is greater than that of `self`"""
      if self.major == other.major:
          if self.minor == other.minor:
              if self.micro == other.micro:
                  cmp = 0
              elif self.micro > other.micro:
                  cmp = 1
              else:
                  cmp = -1
          elif self.minor > other.minor:
              cmp = 1
          else:
              cmp = -1
      elif self.major > other.major:
          cmp = 1
      else:
          cmp = -1
  
      return cmp
  
imports: from hyperparameter_hunter.i_o.exceptions import DeprecatedWarning, UnsupportedWarning
  from functools import wraps
  import re
  from six import string_types
  from textwrap import dedent
  from typing import Union
  from warnings import warn, simplefilter
label_desc: Use image node_id 2 for calling the HHVersion obj's underlying member method code with example usage: obj._compare_main_version(other) and returns: cmp