# Path: dsenser/xgboost/implicit.py
# class XGBoostImplicitSenser(XGBoostBaseSenser, WangImplicitSenser):
#     """Subclass of implicit WangSenser using XGBoost.
# 
#     """
#     PARAM_GRID = BASE_PARAM_GRID
#     N_JOBS = BASE_N_JOBS
# 
#     @timeit("Training implicit XGBoost classifier...")
#     def train(self, *args, **kwargs):
#         super(WangImplicitSenser, self).train(*args, **kwargs)


import dsenser
from dsenser.xgboost.implicit import XGBoostImplicitSenser
from mock import patch
from unittest import TestCase
#!/usr/bin/env python
# -*- coding: utf-8; mode: python; -*-

##################################################################
# Imports
from __future__ import absolute_import




##################################################################
# Constants


##################################################################
# Test Classes
class TestXGBoostImplict(TestCase):
    def test_train(self):
        with patch("dsenser.wang.wangbase.WangBaseSenser.train",
                   autospec=True):
            xgb = XGBoostImplicitSenser()

# Path: dsenser/xgboost/implicit.py
# class XGBoostImplicitSenser(XGBoostBaseSenser, WangImplicitSenser):
#     """Subclass of implicit WangSenser using XGBoost.
# 
#     """
#     PARAM_GRID = BASE_PARAM_GRID
#     N_JOBS = BASE_N_JOBS
# 
#     @timeit("Training implicit XGBoost classifier...")
#     def train(self, *args, **kwargs):
#         super(WangImplicitSenser, self).train(*args, **kwargs)


# Path: tests/xgboost/test_xgb_implicit.py
import dsenser
from dsenser.xgboost.implicit import XGBoostImplicitSenser
from mock import patch
from unittest import TestCase

#!/usr/bin/env python
# -*- coding: utf-8; mode: python; -*-

##################################################################
# Imports
from __future__ import absolute_import




##################################################################
# Constants


##################################################################
# Test Classes
class TestXGBoostImplict(TestCase):
    def test_train(self):
        with patch("dsenser.wang.wangbase.WangBaseSenser.train",
                   autospec=True):
            xgb = XGBoostImplicitSenser()

            xgb.train([], {})