Python

This is a list of useful commands related to Python.

Jupyter notebook location

When starting jupyter notebooks on Windows the shortcut defaults to my profile directory.  To get round this create a jupyter config:

jupyter notebook --generate-config

This will be located in .jupyter\jupyter_notebook_config.py within the profile directory.

Update c.FileContentsManager.root_dir to point to the folder for notebooks

Machine learning

Frequency analysis with Python https://sites.google.com/site/haskell102/home/frequency-analysis-of-audio-file-with-python-numpy-scipy

scikit-learn documentation http://scikit-learn.org/stable/user_guide.html

Azure Machine Learning documentation

Sequential data

http://web.engr.oregonstate.edu/~tgd/publications/mlsd-ssspr.pdf

Fraud detection with Azure Stream Analytics https://azure.microsoft.com/en-us/documentation/articles/stream-analytics-real-time-fraud-detection/

Streaming analytics in Python http://matthewrocklin.com/blog/work/2014/07/04/Streaming-Analytics

Anomaly detection

Azure anomaly detection

Azure One-Class Support Vector Machine

Enable RDS RestrictedAdmin mode

Enable for incoming connections:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa
Name: DisableRestrictedAdmin
Type: REG_DWORD
Value: 0

To require for outgoing connections:

  1. Edit the Group Policy and navigate to the following node:
    Computer Configuration\Policies\Administrative Templates\System\Credentials Delegation
  2. Configure the value of “Restrict delegation of credentials to remote servers” to Enabled.

See https://blogs.technet.microsoft.com/srd/2014/06/05/an-overview-of-kb2871997/ for additional security features.

E-mail security

Validation tools:

Configuration: