Tags: python*

0 bookmark(s) - Sort by: Date / Title ↑ /

  1. one can never really accept the null hypothesis
  2. >>> from sklearn.neighbors import NearestCentroid
    >>> import numpy as np
    >>> X = np.array( [-1, -1 » , -2, -1 » , -3, -2 » , 1, 1 » , 2, 1 » , 3, 2 » ])
    >>> y = np.array( 1, 1, 1, 2, 2, 2 » )
    >>> clf = NearestCentroid()
    >>> clf.fit(X, y)
    NearestCentroid()
    >>> print(clf.predict( [-0.8, -1 » ]))
    1 »
    2021-09-02 Tags: , , , , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: tagged with "python"

About - Propulsed by SemanticScuttle