Android Gradle plugin, issue with Google’s maven repo

After attempt to add Firebase client library com.google.gms:google-services:4.3.2 into root level Gradle config build.grade, I caught error during Android Studio syncing:

Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener.
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:86)
... 85 more
Caused by: java.lang.NoSuchFieldError: JAVA_LETTER_OR_DIGIT

Continue reading “Android Gradle plugin, issue with Google’s maven repo”

httpcomponents:httpcore ThreadSafe class not found solution

@ThreadSafe class not found compilation error occurs after updating your org.apache.httpcomponents:httpcore dependency version to 4.4.11 or above.
This httpcore version comes with:

    Class org.apache.http.annotation.Immutable removed
    Class org.apache.http.annotation.NotThreadSafe removed
    Class org.apache.http.annotation.ThreadSafe removed

Continue reading “httpcomponents:httpcore ThreadSafe class not found solution”

How to predict_proba with LinearSVC

Once I had a problem where I have to give the best solution according to Area under the curve (AUC or AUROC) score. I had hundreds of features and my training set was about 100.000 of objects. It was a classification problem. I had tried gradient boosting, logistic regression, random forests and then I decided to try SVM and LinearSVC. Continue reading “How to predict_proba with LinearSVC”