总而言之:
经过训练来预测函数的简单(单隐藏层)前馈 Pytorch 模型的性能y = sin(X1) + sin(X2) + ... sin(X10)
明显低于使用 Keras 构建/训练的相同模型。为什么会这样?可以采取哪些措施来减轻性能差异?
在训练回归模型时,我注意到 PyTorch 的性能远远低于使用 Keras 构建的相同模型。
之前已经观察到并报道过这种现象:
此前也已做出以下解释和建议:
ADAM,Active Directory,LDAP,ADFS,Windows Identity,卡片空间和哪个服务器(Windows 2003,Windows 2008)使用什么之间有什么区别/关系?
我正在研究ADLDS或ADAM是否适合处理公司产品的用户.目前我们正在使用AD,但我们计划扩展到更多客户,而无需购买CAL.
我有如何使用ADSI Edit添加用户和组,但我找不到任何工具,如"Active Directory用户和计算机",我想避免开发一个.是否有任何免费的GUI来管理AD LDS?
我必须配置Spring安全性以通过LDAP对用户进行身份验证.这是经理用户所在的子树:
ldaps://vldp.floal:636/CN=Administration,CN=fdam,DC=fg,DC=local
Run Code Online (Sandbox Code Playgroud)
这是用户所在的地方:
ldaps://vldp.floal:636/CN=ProxyUsers,CN=fdam,DC=fg,DC=local
Run Code Online (Sandbox Code Playgroud)
所以我使用这个设置:
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{
auth.ldapAuthentication()
.contextSource()
.url("ldaps://vldp.floal:636/DC=fg,DC=local")
.managerDn("CN=A0XXX32,CN=Administration,CN=fdam,DC=fg,DC=local")
.managerPassword(password)
.and()
.userSearchBase("CN=ProxyUsers,CN=fdam")
.userSearchFilter("(CN={0})")
.ldapAuthoritiesPopulator(myAuthPopulator);
}
Run Code Online (Sandbox Code Playgroud)
当我尝试通过用户登录时,问题是异常抛出,我收到此错误:
2016-03-25 14:43:14 [http-nio-8086-exec-6] ERROR o.s.s.w.a.UsernamePasswordAuthenticationFilter - An internal error occurred while trying to authenticate the user.
org.springframework.security.authentication.InternalAuthenticationServiceException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031522C9, problem 2001 (NO_OBJECT), data 0, best match of:
'CN=fdam,DC=fg,DC=local'
]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031522C9, problem 2001 (NO_OBJECT), data 0, best match of:
'CN=fdam,DC=fg,DC=local'
]; …
Run Code Online (Sandbox Code Playgroud) 在我工作的每个大公司中,他们使用LDAP作为访问用户信息中央存储库的方式,但很少有人努力扩展模式以包含不是从inetOrgPerson派生的objectClasses.
Microsoft的Active Directory进行了大量的架构扩展,但很少有商业产品利用LDAP的功能.
是因为大多数LDAP开发人员不知道如何在用户之外进行建模?找到它的价值,但只是没有深入思考它?尝试过并遇到性能问题?还有别的吗?
我正在尝试在未设置属性的AD LDS(ADAM)实例中搜索用户,例如,"company"属性未设置为ADAM存储(或AD)中的值.
当我使用PrincipalSearcher
自UserPrincipal
定义AdvancedSearchFilters
对象的自定义和自定义时,我收到错误:
Run Code Online (Sandbox Code Playgroud)An unhandled exception of type 'System.ArgumentException' occurred in System.DirectoryServices.dll Additional information: The (&(objectClass=user)(!(company=))) search filter is invalid.
这是我的示例代码:
using System;
using System.DirectoryServices.AccountManagement;
using System.Security.Permissions;
using System.Linq;
namespace AdamDump
{
class Program
{
static void Main(string[] args)
{
PrincipalContext context = new PrincipalContext(ContextType.ApplicationDirectory, "MyAdamInstance:50000", "OU=Adam Users,dc=apps01,dc=mydomain", "queryaccount", "password");
// initialize a Query By Example
using (MyUserPrincipal myUserPrincipal = new MyUserPrincipal(context))
{
myUserPrincipal.MyAdvancedFilters.WhereCompanyNotSet();
PrincipalSearchResult<Principal> principals = null;
// do the search...
using (PrincipalSearcher …
Run Code Online (Sandbox Code Playgroud) 我需要测试从我的应用程序到LDAP的连接.我需要一些我可以轻松安装的东西(首选是xcopy).
多年前,我正在使用Active Directory应用程序模式(ADAM)来实现此目的.但它在Windows 8上不受支持.给我有趣的错误消息:
You do not have permission to update Windows. Please contact your system administrator.
Run Code Online (Sandbox Code Playgroud)
现在,它看起来像Active Directory轻量级目录服务(AD LDS).但是又一次:
Installer encountered an error: 0x80096002
The certificate for the signer of the message is invalid or not found.
Run Code Online (Sandbox Code Playgroud)
所以有两个问题:
我需要在Active Directory上设置SSL.我google了很多但是找不到关于如何做到这一点的体面的写作.如果你知道一些关于此的好资源,请告诉我.谢谢!
我在本地计算机(Windows Server 2008 R2盒)上为新应用程序设置了ADLDS实例,并且已经敲除了一些.Net代码来访问它.这是我正在测试的功能之一,因为你可以看到它相当简单的东西.
Dim MyLdapUri As New Uri(searchRoot)
Using MyContext As New PrincipalContext(ContextType.ApplicationDirectory,
MyLdapUri.Authority,
MyLdapUri.LocalPath.Substring(1), ContextOptions.SimpleBind,
strUsername, strPassword)
Return UserPrincipal.FindByIdentity(MyContext, IdentityType.Name, username)
End Using
Run Code Online (Sandbox Code Playgroud)
我反复发现的一件事是我第一次调用此函数或任何其他函数从测试床应用程序访问实例时出现约18秒的延迟.对AD LDS实例的后续调用大约为40ms.一旦你离开实例几分钟,那么第一次通话后回拨18秒.
我在事件日志中找不到任何不好的东西.我也试过以不同的方式连接到实例(简单绑定到上面实例中定义的用户,使用本地和域Windows帐户),并且第一次命中的这18秒额外延迟总是发生.任何人都可以给我指出导致这种情况的原因和/或我如何诊断/修复它吗?
问题:一个很长的RNN网
N1 -- N2 -- ... --- N100
Run Code Online (Sandbox Code Playgroud)
对于类似的优化器AdamOptimizer
,compute_gradient()
将为所有训练变量提供渐变.
但是,它可能会在某个步骤中爆炸.
类似于如何有效地应用梯度剪切张量流的方法 可以剪切大的最终梯度.
但是如何剪辑那些中级的呢?
一种方法可能是从"N100 - > N99"手动执行backprop,剪辑渐变,然后是"N99 - > N98"等等,但这太复杂了.
所以我的问题是:是否有更简单的方法来剪辑中间渐变?(当然,严格来说,它们不再是数学意义上的渐变)