Skip to content

ds-project/ds-realtime-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ds-realtime-cache

Machine Learning realtime cache with Redis

use python 3.5.2

Only redis-client library for python is required.

> cd /d/home/site/tools/
> python -m pip install azure 
> python -m pip install redis

Then, put some configs on file and send post request and put body just following as json type. "Inputs" should follow the definition of azure ML we will use.

{
    "inputs": [
        [ "0", "0", "0", "0", "0", "0", "0", "0", "value", "value", "0", "0", "0", "value", "value" ],
        [ "2", "30", "100", "300", "100", "00", "500", "300", "value", "value", "0", "0", "0", "value", "value" ]
    ]
}

If azure function do correctly, you will see this response

{"2":"['100', '100', '0', '500', '300', 'value', 'Y', '0.997041344642639']","0":"['0', '0', '0', '0', '0', 'value', 'Y', '0.994130671024323']"}

About

Machine Learning realtime cache with Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages