(self, X)
return cost
Train model based on mini-batch of input data.

        Parameters
        ----------
        X : ndarray, shape (n_samples, n_features)
            Matrix containing the data to be learned.

        Returns cost of mini-batch.
Train model based on mini-batch of input data.
Train model based on mini - batch of input data .
def partial_fit(self, X):
        """Train model based on mini-batch of input data.

        Parameters
        ----------
        X : ndarray, shape (n_samples, n_features)
            Matrix containing the data to be learned.

        Returns cost of mini-batch.
        """
        opt, cost = self.sess.run((self.opt, self.cost),
                                  feed_dict={self.x: X})
        return cost
def partial_fit ( self , X ) : opt , cost = self . sess . run ( ( self . opt , self . cost ) , feed_dict = { self . x : X } ) return cost