我有一个网站托管在www.smain.com的aws中,有2个子域test.domain.com和stage.domain.com.我正在使用MEAN进行开发,现在我想要的是密码保护我的子域test.domain.com和stage.domain.com,但方式与我们在php中使用htaccess类似.
现在我个人喜欢这种htaccess方法,因为在这种方法中,您的应用程序代码将是相同的,身份验证将由htaccess添加.任何想法如何在nodejs中这样做而不改变应用程序代码,以便我可以在将来删除它,如果我想.
PS:欢迎提示.
我目前仍然坚持这个问题.假设我有以下日常数据
+-------------------------+-----+----+
| Date | C1 | C2 |
+-------------------------+-----+----+
| 2012-08-01 00:00:00.000 | 44 | 44 |
| 2012-08-02 00:00:00.000 | 51 | 49 |
| 2012-08-03 00:00:00.000 | 60 | 59 |
| 2012-08-04 00:00:00.000 | 68 | 67 |
| 2012-08-05 00:00:00.000 | 82 | 78 |
| 2012-08-06 00:00:00.000 | 62 | 59 |
| 2012-08-07 00:00:00.000 | 58 | 53 |
| 2012-08-08 00:00:00.000 | 69 | 65 |
| 2012-08-09 00:00:00.000 | 82 | …Run Code Online (Sandbox Code Playgroud) 我有一个数据集,我使用WEKA中的信息增益功能选择方法来获取重要的功能.以下是我得到的输出.
Ranked attributes:
0.97095 1 Opponent
0.41997 11 Field_Goals_Made
0.38534 24 Opp_Free_Throws_Made
0.00485 4 Home
0 8 Field_Goals_Att
0 12 Opp_Total_Rebounds
0 10 Def_Rebounds
0 9 Total_Rebounds
0 6 Opp_Field_Goals_Made
0 7 Off_Rebounds
0 14 Opp_3Pt_Field_Goals_Made
0 2 Fouls
0 3 Opp_Blocks
0 5 Opp_Fouls
0 13 Opp_3Pt_Field_Goals_Att
0 29 3Pt_Field_Goal_Pct
0 28 3Pt_Field_Goals_Made
0 22 3Pt_Field_Goals_Att
0 25 Free_Throws_Made
Run Code Online (Sandbox Code Playgroud)
这告诉我所有得分为0的功能都可以忽略,是否正确?
现在,当我在WEKA中尝试Wrapper子集评估时,我得到了在信息增益方法中忽略的选定属性(即其得分为0).以下是输出
Selected attributes: 3,8,9,11,24,25 : 6
Opp_Blocks
Field_Goals_Att
Total_Rebounds
Field_Goals_Made
Opp_Free_Throws_Made
Free_Throws_Made
Run Code Online (Sandbox Code Playgroud)
我想了解,包装器子集评估方法强烈考虑信息增益忽略的属性是什么原因?
artificial-intelligence machine-learning weka feature-selection