我正在尝试导入两个android支持库.我正在尝试将GoogleMaps AP2应用到我的Android应用程序中.因此我需要两个库.我正在使用AndroidStudio和Gradle.
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
compile 'com.android.support:appcompat-v7:21.0.+'
// compile 'com.google.android.gms:play-services:6.1.+'
compile "com.android.support:support-v13:18.0.+"
compile "com.loopj.android:android-async-http:1.4.5"
repositories {
mavenCentral()
}
compile "com.github.chrisbanes.actionbarpulltorefresh:library:+"
compile 'joda-time:joda-time:2.5'
}
Run Code Online (Sandbox Code Playgroud)
错误是:
Module version com.android.support:support-v13:18.0.0 depends on libraries but is not a library itself
Run Code Online (Sandbox Code Playgroud) 当我Alt + Enter在 IntelliJ(Windows 10 机器上的版本 2017.2)中按下类名时,该Create Test选项未列出。我该怎么做才能把它弄到那里?
我期待着类似的东西
它来自用于创建测试的IntelliJ 帮助页面。
是否可以将Create Test对话框添加到菜单中?
在对词袋实现线性回归模型期间,python 返回了非常大/非常低的值。train_data_features包含训练数据中的所有单词。训练数据包含大约 400 条评论,每条评论少于 500 个字符,排名在 0 到 5 之间。之后,我为每个文档创建了一个词袋。在尝试对所有词袋的矩阵进行线性回归时,
from sklearn import linear_model
clf = linear_model.LinearRegression()
clf.fit(train_data_features, train['dim_hate'])
coef = clf.coef_
words = vectorizer.get_feature_names()
for i in range(len(words)):
print(str(words[i]) + " " + str(coef[i]))
Run Code Online (Sandbox Code Playgroud)
结果似乎很奇怪(只是 4000 中的 3 个示例)。它显示了为单词创建的回归函数的因素。
btw -0.297473967075
land 54662731702.0
landesrekord -483965045.253
Run Code Online (Sandbox Code Playgroud)
我很困惑,因为目标变量在 0 到 5 之间,但因子是如此不同。他们中的大多数都有非常高/低的数字,我只期待像btw.
你有什么想法,为什么结果是这样的?