def get_weights(self):
    'Get weights from the fitted model'
    assert (self._weights is not None), 'Model needs to be fitted first. Use the fit method'
    return self._weights
Get weights from the fitted model
def get_weights(self):
    
    assert (self._weights is not None), 'Model needs to be fitted first. Use the fit method'
    return self._weights