Skip to content

Commit e8f7a03

Browse files
committed
Add config
1 parent 97e76af commit e8f7a03

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
# edgeRec
22

3-
All in one Recommendation System running on Edge device (Android/iOS etc..)
3+
All in one Recommendation System running on Edge device (Android/iOS/IoT device etc.)
44

55

66
# Features
77

88
- [x] Parameter Server based Online Learning
9-
- [ ] DeepL based Auto Feature Engineering
10-
- [ ] Database Aggregation accelerated Feature Normalization
119
- [x] Training & Inference all in one binary powered by golang
10+
- Databases support
11+
- [ ] MySQL support
12+
- [ ] SQLite support
13+
- [ ] Database Aggregation accelerated Feature Normalization
14+
- Feature Engineering
15+
- [ ] Rule based FE config
16+
- [ ] DeepL based Auto Feature Engineering
17+
- Demo
18+
- [ ] Android demo
19+
- [ ] iOS demo
1220

1321
# Thanks
1422

@@ -22,4 +30,4 @@ To make this project work, quite a lot of code are copied and modified from the
2230

2331
# Papers related
2432

25-
- [EdgeRec: Recommender System on Edge in Mobile Taobao](https://arxiv.org/abs/2005.08416) // not very identical
33+
- [EdgeRec: Recommender System on Edge in Mobile Taobao](https://arxiv.org/abs/2005.08416) // not very identical implementation

cmd/edgerec/main.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package main
2+
3+
import (
4+
"flag"
5+
)
6+
7+
var (
8+
// Version is the version of the program
9+
Version = "0.0.0"
10+
Config string
11+
)
12+
13+
func init() {
14+
flag.StringVar(&Config, "config", "", "config file")
15+
}
16+
17+
func main() {
18+
19+
}
20+
21+
// parseFlag parses command line options
22+
func parseFlag() {
23+
flag.Parse()
24+
}

config/config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package config
2+
3+
type Config struct {
4+
DbType string `json:"db_type"` // mysql, sqlite
5+
Dsn string `json:"dsn"`
6+
}

0 commit comments

Comments
 (0)