PriorityQueue:小根堆(大根堆)

优先队列的作用是能保证每次取出的元素都是队列中权值最小的;

一、小根堆

二、大根堆

 

sklearn.linear_model.SGDClassifier

1.The loss function to be used. Defaults to ‘hinge’, which gives a linear SVM.

2.The ‘log’ loss gives logistic regression, a probabilistic classifier.

3.‘modified_huber’ is another smooth loss that brings tolerance to outliers as well as probability estimates.

4.‘squared_hinge’ is like hinge but is quadratically penalized.

5.‘perceptron’ is the linear loss used by the perceptron algorithm.