https://github.com/ajthinking/learning-ai-examples
https://github.com/ajthinking/learning-ai-examples
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajthinking/learning-ai-examples
- Owner: ajthinking
- Created: 2018-12-04T11:54:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-19T05:11:10.000Z (over 7 years ago)
- Last Synced: 2025-02-11T10:47:27.324Z (over 1 year ago)
- Language: Python
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# :stars: Artificial inteligence with pytorch examples
This is my collection of examples. The examples are located in independent folders under ```/src```, and they can be excecuted like this ```python /src/*/main.py```
## :white_check_mark: predict age in days from how many years old
Suddenly the unknown sibling Jerry (age x) joins your family. What are his number of survived days (y)?
```python /src/age/main.py```
## :white_check_mark: predict pimpmydrawing downloads
Estimate number of downloads based on publication date and keywords.
```python /src/pimp/main.py```
### data
Drawings extracted from Laravel with the following query
```
collect(
App\File::all()->unique('name')->map(
function($file) {
$file = $file->only(['name', 'updated_at', 'downloads']);
$file["updated_at"] = $file["updated_at"]->timestamp;
return $file;
})->unique('name')->values()->all()
)->shuffle()->toJSON()
```
Also delete id=1 (it got 500K downloads spike.)
#### questions
* Why does SGD work? The data is not convex, but the algorithm adds stocastic global minimum search?
* How to properly normalize/unnormalize data?
* How to setup databases as input source?
* How swap this example to working on the GPU?
* General improvements
#
* Search terms extracted from google search console