diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-02-03 16:27:19 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-02-03 16:27:50 +0200 |
| commit | c3cb91602f90d4fec8a6801203ff78ee10f42a77 (patch) | |
| tree | aa66cad6f8798d0e68f2a55f5b0183a3e6c548d5 /src | |
| parent | 972b6a8fbbb1d82d5254abc2c1c8dc94117cd154 (diff) | |
DBO_random_data_generation__domain__CRI() mv + ;tweeking
Diffstat (limited to 'src')
| -rw-r--r-- | src/local/domain/cri/domain_cri.py | 14 | ||||
| -rw-r--r-- | src/local/domain/cri/test_domain__CRI.py (renamed from src/server-tests/test_domain__CRI.py) | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/local/domain/cri/domain_cri.py b/src/local/domain/cri/domain_cri.py index c93b6473..75341ef7 100644 --- a/src/local/domain/cri/domain_cri.py +++ b/src/local/domain/cri/domain_cri.py @@ -2,15 +2,15 @@ from db_op import DB_op class DBO_random_data_generation__domain__CRI(DB_op): - def __init__(self, lim_n=128, - lim_r=128 * 16, - prob_link_create=0.25): + def __init__(self, lim_n=50, + lim_r=10000, + prob_link_create=0.01): """ generate random data: CRI domain: Person x Skill """ super(DBO_random_data_generation__domain__CRI, self).__init__() - n_attr_set__skill = ['Cryptocurrency', + n_attr_set__skill_raw = ['Cryptocurrency', 'Database architecture', 'Web-development', 'HTML', @@ -19,6 +19,12 @@ class DBO_random_data_generation__domain__CRI(DB_op): 'Guitar Playing', 'Image processing'] + n_attr_set__skill = [] + for s in n_attr_set__skill_raw: + n_attr_set__skill.append(s) + n_attr_set__skill.append(s + '_a') + n_attr_set__skill.append(s + '_b') + n_attr_set__name = ['Yael', 'Nofar', 'Ela', diff --git a/src/server-tests/test_domain__CRI.py b/src/local/domain/cri/test_domain__CRI.py index b76ecd0e..bacded97 100644 --- a/src/server-tests/test_domain__CRI.py +++ b/src/local/domain/cri/test_domain__CRI.py @@ -5,7 +5,7 @@ import unittest import db_controller as dbc from db_op import DBO_cypher_query -from domain.cri.domain_cri import DBO_random_data_generation__domain__CRI +from domain_cri import DBO_random_data_generation__domain__CRI from rz_server import Config |
