class_docstr: Base class for doing parameter search.
  
  Parameters
  ----------------
  model: :obj:`cornac.models.Recommender`, required
      Base recommender model to be tuned.
  
  space: list, required
      Parameter space to be searched on.
      It's a list of :obj:`cornac.hyperopt.SearchDomain`.
  
  metric: :obj:`cornac.metrics.RatingMetric` or :obj:`cornac.metrics.RankingMetric`, required
      Scoring metric to measure the performance and rank the parameter settings.
  
  eval_method: :obj:`cornac.eval_methods.BaseMethod`, required
      Evaluation method is being used. 
      
  name: str, default: 'BaseSearch'
      The name of the searching strategy.
      
class_docstr_tok: ["Base","class","for","doing","parameter","search",".","Parameters","--","--","--","--","--","--","--","--","model",":",":","obj",":","`","cornac.models.Recommender","`",",","required","Base","recommender","model","to","be","tuned",".","space",":","list",",","required","Parameter","space","to","be","searched","on",".","It","'s","a","list","of",":","obj",":","`","cornac.hyperopt.SearchDomain","`",".","metric",":",":","obj",":","`","cornac.metrics.RatingMetric","`","or",":","obj",":","`","cornac.metrics.RankingMetric","`",",","required","Scoring","metric","to","measure","the","performance","and","rank","the","parameter","settings",".","eval_method",":",":","obj",":","`","cornac.eval_methods.BaseMethod","`",",","required","Evaluation","method","is","being","used",".","name",":","str",",","default",":","'BaseSearch'","The","name","of","the","searching","strategy","."]
docstr: Scoring using the best searched model
docstr_tok: ["Scoring","using","the","best","searched","model"]
code: def score(self, user_idx, item_idx=None):
      """Scoring using the best searched model"""
      return self.best_model.score(user_idx, item_idx)
  
imports: import numpy
  from itertools import product
  from .models import Recommender
  from .metrics import RatingMetric, RankingMetric
  from .eval_methods import rating_eval, ranking_eval
  from .utils import get_rng
label_desc: Use image node_id 4 for calling the BaseSearch obj's underlying member method code with example usage: obj.score(user_idx, item_idx) and returns: self