Skip to content

Commit

Permalink
Merge pull request #95 from george0st/change
Browse files Browse the repository at this point in the history
Repair hint data (ERR in JSON serializer)
  • Loading branch information
george0st authored Jan 18, 2024
2 parents 0a743a0 + f2d302e commit cd4d85a
Show file tree
Hide file tree
Showing 20 changed files with 313 additions and 301 deletions.
3 changes: 2 additions & 1 deletion 01-model/02-feature-set/02-basic-contact.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"kind": "feature-set",
"spec": {
"targets": [
"parquet"
"parquet",
"redis"
],
"entities": [
{
Expand Down
2 changes: 1 addition & 1 deletion 01-model/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"description": "The machine learning meta-model with synthetic data (useful for MLOps/feature store), part of the quality gateway concept.",
"kind": "model",
"spec": {
"version": "0.1.3"
"version": "0.1.4"
}
}
Binary file modified 02-data/01-size-100/01-basic-party.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/02-basic-contact.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/03-basic-relation.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/04-basic-account.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/05-basic-transaction.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/06-basic-event.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/07-basic-communication.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/01-basic-party.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/02-basic-contact.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/03-basic-relation.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/04-basic-account.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/05-basic-transaction.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/06-basic-event.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/07-basic-communication.csv.gz
Binary file not shown.
296 changes: 148 additions & 148 deletions 03-test/01-size-100.json

Large diffs are not rendered by default.

296 changes: 148 additions & 148 deletions 03-test/02-size-1k.json

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions 03-test/10-vector.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
"description": "Setting for test vectors",
"kind": "test",
"spec": {
"online": ["vector-party"],
"online": ["vector-party", "vector-partycontact"],
"test": {
"vector-party": {
"feature-set": "01-basic-party",
"entities": ["party-id"],
"features": ["party-establishment", "party-type"]
"features": ["party-establishment", "party-type", "party-gender","party-education", "party-familystatus",
"party-nchild", "party-industry","party-industryposition", "party-income", "party-incomehousehold"]
},
"vector-partycontact": {
"feature-set": "02-basic-contact",
"entities": ["party-id"],
"features": ["contact-id", "contact-email", "contact-phone", "contact-state"]
}

}
}
}
6 changes: 5 additions & 1 deletion generator/data_hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import math
import uuid
import os
import numpy as np

from generator.base_test import BaseTest
from generator.basic_party import BasicParty
Expand Down Expand Up @@ -107,4 +108,7 @@ def save(self, path, dir: str):

def datetime_handler(self,obj):
if isinstance(obj, (datetime, date, time)):
return str(obj)
return str(obj)

if isinstance(obj, np.int32):
return int(obj)

0 comments on commit cd4d85a

Please sign in to comment.