编程笔记

lifelong learning & practice makes perfect

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//修不完的bug
class CBase
{
public:
virtual bool Func(unsigned int num,double dNum,vector<bool>& status){return false;};
protected:

private:

}
class CDerive
{
public:
bool Func(unsigned int num,double dNum){return true;};
protected:

private:

}
int main(){
CBase *pBase=new CDerive();
std::cout<<pBase->Func()<<std::endl;
}
阅读全文 »

一、用户对象、句柄

User interface objects support only one handle per object. Processes cannot inherit or duplicate handles to user objects. Processes in one session cannot reference a user handle in another session.

There is a theoretical limit of 65,536 user handles per session. However, the maximum number of user handles that can be opened per session is usually lower, since it is affected by available memory. There is also a default per-process limit of user handles. To change this limit, set the following registry value:

1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\USERProcessHandleQuota
阅读全文 »

references

wsl 2 ,ulimit -n 65535 设置报错=>

ulimit: Permission denied when changing resource of type ‘Maximum number of open file descriptors’

修改 /etc/security/limits.conf 的配置,再su username切换到当前用户就会生效

1
2
3
4
5
#soft for enforcing the soft limits
#hard for enforcing hard limits
#<domain> <type> <item> <value>
* soft nofile 50000
* hard nofile 55555

  • Momentum:

    Momentum takes past gradients into account to smooth out the steps of gradient descent. It can be applied with batch gradient descent, mini-batch gradient descent or stochastic gradient descent.

    You have to tune a momentum hyperparameter β and a learning rate α.

    阅读全文 »

  • non-stationary:非平稳过程

  • univariate time series

  • multivariate time series

    阅读全文 »

  • 问题

    1
    2
    3
    Failed to get convolution algorithm. This is probably because cuDNN
    failed to initialize, so try looking to see if a warning log message was
    printed above.
  • 描述

    阅读全文 »

  • supervised learning

    由一组参考的输入输出x、y, mapping得到相应的关系y=f(x)

  • structure data

    data indatabase例如年龄、房价预测中的zip code、bedrooms、wealth等

阅读全文 »