https://github.com/xfl03/sekaieventpredictor
Event predictor for game Project SEKAI.
https://github.com/xfl03/sekaieventpredictor
openfaas project-sekai typescript
Last synced: 3 months ago
JSON representation
Event predictor for game Project SEKAI.
- Host: GitHub
- URL: https://github.com/xfl03/sekaieventpredictor
- Owner: xfl03
- License: gpl-3.0
- Created: 2021-01-02T18:56:18.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-18T19:34:42.000Z (about 3 years ago)
- Last Synced: 2023-11-18T13:31:05.315Z (almost 2 years ago)
- Topics: openfaas, project-sekai, typescript
- Language: TypeScript
- Homepage:
- Size: 259 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SekaiEventPredictor
Event predictor for game Project SEKAI.## Usage
### Init or Update
```sh
ts-node downloadData.ts
ts-node genModel.ts
```### Predict
```sh
ts-node predict.ts
```## Usage for Sekai Viewer
### Prepare
Notice: Minio example end point and key comes from [minio offical document](https://docs.min.io/docs/javascript-client-quickstart-guide.html).
Environment variables:
- `REDIS_URL` Redis url for saving predict. Format:`redis://[user:password@]host[:port][/database][?option=value]`.
- `MINIO_END_POINT` Minio endPoint, which will be used to save predict model. Example:`play.min.io`.
- `MINIO_BUCKET` Minio bucket. Example:`europetrip`.
- `MINIO_ACCESS_KEY` Minio access key. Example:`Q3AM3UQ867SPQQA43P2F`.
- `MINIO_SECRET_KEY` Minio secret key. Example:`zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG`.### Init or Update
```sh
ts-node updateForSekaiViewer.ts
```### Predict
#### Normal
```sh
ts-node predictForSekaiViewer.ts
```