Posts

Showing posts from February 28, 2019

SGDClassifier accuracy MUCH worse than LinearSVC

Image
1 $begingroup$ with LinearSVC, I get an accuracy off 0.89: linearSVC = LinearSVC().fit(X_train, y_train) y_pred = linearSVC.predict(X_test) print('accuracy', np.sum(y_pred == y_test) / y_test.shape[0]) Because I need online training, I tried the same with SGDClassifier: sgd = SGDClassifier().fit(X_train, y_train) y_pred = sgd.predict(X_test) print('accuracy', np.sum(y_pred == y_test) / y_test.shape[0]) but now I get 0.004 - what am I missing here? The shape of X_train is (21519, 8255). Of course I do not expect the exact same accuracy, but SGDClassifier basically gets nothing right... scikit-learn online-learning share | improve this question ...

Clemens XIII

Image
Clemens XIII Res apud Vicidata repertae: Nativitas : 7 Martii 1693 ; Venetiae Obitus : 2 Februarii 1769 ; Roma Patria : Respublica Veneta , Dicio Pontificia Nomen nativum : Carlo della Torre di Rezzonico Pontificatus 1758–1769 Praecessor : Benedictus XIV Successor : Clemens XIV Clemens XIII (natus "Carolus della Torre Rezzonico" Venetiis die 7 Martii 1693 familiae nobilis; obiit Romae die 2 Februarii 1769) erat episcopus Romae et papa Ecclesiae Catholicae Romanae a die 6 Iulii 1758 ad mortem. Vita | Rezzonico apud Iesuitas Bononiae et anno 1714 apud Academiam nobilum ecclesiasticorum (Italiane Accademia dei Nobili Ecclesiastici ) studuit. Patavii doctor iuris factus est. Anno 1737 cardinalis et anno 1743 episcopus Patavinus Rezzonico creatus est. Nexus externi | Vicimedia Communia plura habent quae ad Clementem XIII spectant. Friedrich Wilhelm Bautz, "CLEMENS XIII., Papst" in Biographisch-Bibliographisches Kirchenlex...

Short story: Political story, San Francisco wins drawing for deciding morals

Image
2 I think the short story is circa 2005 or so, a time when society has agreed to determine political and moral policy through a lottery system, spinning a wheel - definitely a Wheel of Fortune motif. It is told from a conservative point of view, and at the end San Francisco is awarded morality laws. I think I read it in S&SF or Asimov's or Analog at that time. The protagonist is a critical person attending the drawings, and conservative cities begin "winning" control of different political topics, such as birth control, guns, freedom of speech. story-identification short-stories share | improve this question edited yesterday ...