semvec/pypi-packages huggingface dataset:
ackley 1.0.9.9
A Python package to generate Ackley Function values.
License: MIT

**Ackleys Function**

---

In mathematical optimization, the Ackley function is a non-convex function used as a performance test problem for optimization algorithms. It was proposed by David Ackley in his 1987 PhD Dissertation.

<img src="https://latex.codecogs.com/svg.latex?f(x_1,x_2)&space;=&space;-20exp{([0.2\sqrt{0.5(x_1^2&space;&plus;&space;x_2^2)}])}&space;-&space;exp{([0.5(\cos{2\pi&space;x_1}&space;&plus;&space;\cos{2\pi&space;x_2})])}&space;&plus;&space;e&space;&plus;20">

<img src ="https://upload.wikimedia.org/wikipedia/commons/e/e0/Ackley.gif">

Credits : 

1.   [Wiki](https://https://en.wikipedia.org/wiki/Ackley_function)
2.   <a href="https://https://books.google.lk/books?id=sx_VBwAAQBAJ&printsec=frontcover&redir_esc=y#v=snippet&q=%22Ackley%20function%22&f=false">Ackley, D. H. (1987) "A connectionist machine for genetic hillclimbing"</a>
3. camo.githubusercontent.com
django-deploy-kit 0.10.2
A deploy tool for Django
License: MIT

# Django Deploy

For deploy Django project on Linux server.

Features:

1. Automatic

2. Zero downtime

3. Multiple version

4. Easy rollback


## Requirements on server

* Nginx
* Anaconda
* Nodejs
* PM2

## Quick start

1. Add "deploy" to your INSTALLED_APPS setting like this:

    ```python
    INSTALLED_APPS = [
        ...
        'deploy',
    ]
    ```

2. Configure ssh:

    add host config in `~/.ssh/config`
    
    ```bash
    Host host1
        Hostname xxx.xxx.xxx.xxx
        Port 2222
        User xxxx
        ServerAliveInterval 60
        # IdentityFile ~/.ssh/id_rsa_xxxxx
    ```
    
    create ssh-key file
    
    ```bash
    ssh-keygen -t rsa -C "xxxx@xxxx.com"
    ```
    
    you could leave a blank for password, when you execute ssh command it will not ask your password again

3. Add definition in settings of Django app

    ```python
    GIT_URL = 'git@github.com:path/name.git'
    GIT_DEPLOY_BRANCH = 'stable'
    APP_NAME = 'appname'

    DEPLOY = {
        "host1": {  # same as ssh-config
            "task_prefix": "app-process",  # prefix of process name
            "home_path": '/path/to/appname/www',  # path of each versions
            "static_path": '/path/to/appname/statics',  # path of statics for each versions
            "conda_path": '/path/to/anaconda3/bin',  # path of anaconda bin 
            "nginx_conf": "/etc/nginx/sites-enabled/appname",  # enabled site config of Nginx
            "fixed_deploy_path": '/path/to/appname/fixed', # use to do migrate
        }
    }
    ```

4. create PM2 and Nginx configure template

    create directory name of `deploy` in your base path of Django app 
    
    ```bash
    deploy/
    └── templates
        └── deploy
            ├── ecosystem.config.template
            └── nginx.conf.template
    ```
    
    content of `ecosystem.config.template`
    
    ```bash
    ...
    ```
    
    content of `nginx.conf.template`