fix: remove print from gbrt test
fix: use six.string_types instead of basestring
uses raises instead of with assert_raises - apparently doesn't work on python3 nose version.
Testing log_loss and hinge_loss under THRESHOLDED_METRICS
FIX: Removed redundant code
TST: Test class variance and string input
FIX: Changed str vs float invariance test
Merge pull request #2717 from Manoj-Kumar-S/test_log_loss

Testing log_loss and hinge_loss under THRESHOLDED_METRICS
Add learning curve
MISC remove accidentally commited file. Whoops!
DOC add learning_curve to what's new and API reference

+ PEP8 fixes

+ Alphabetical ordering fix for classes.rst

+ Example reference
FIX explicit type for offset variable
Handle n_features < n_informative case in make_regression.

Useful if n_informative is not explicitly specified, in which case
n_informative=10.
Regenerate C files
Wrong format specifier used when formatting exception message.
COSMIT get rid of deprecation warning in tree tests
MAINT deprecate HMMs

Fixes #2731.
MAINT ignore sklearn/tree/_utils.c in diff
COSMIT tree: unused variable warnings and use for/range

Not recompiled with Cython, as line numbers still match up.
BUG fix unchecked mallocs in trees

All mallocs should be checked now. Some notes for the next person to touch
this code, or do anything with malloc in Cython code:

* with gil: raise MemoryError() didn't work as expected, as a surrounding
  nogil block catches and logs the exception, then proceeds as if nothing
  happened.
* There were several opportunities for double free in the code. This is
  handled by letting the destructor handle the freeing.
* Similarly, constructors failed to set pointers to NULL so __dealloc__
  would try to free unitialized pointers.
* Out of memory might leave trees in an inconsistent state, but will not
  cause a double free. A subsequent successful fit should produce a
  consistent state, although I didn't test this.
* Replaced a free/calloc with a realloc; realloc(NULL, n) = malloc(n).
* free(NULL) is a harmless no-op per ISO C89.

Also performed an optimization: the pre-sort splitter was using size_t for
an array of booleans. unsigned char is faster and smaller.

Finally, fixed some cosmetic issues (long lines).