Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-KOUAGOU committed Oct 15, 2024
1 parent c4c6a9a commit 5824bbc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,20 @@ for str_target_concept, examples in learning_problems.items():
"model": "TDL"})
print(response.json())
```

NCES (another scalable learner) can be used as follows
```python
import json
import requests
with open(f"LPs/Mutagenesis/lps.json") as json_file:
learning_problems = json.load(json_file)["problems"]
for str_target_concept, examples in learning_problems.items():
response = requests.get('http://0.0.0.0:8000/cel',
headers={'accept': 'application/json', 'Content-Type': 'application/json'},
json={"pos": examples['positive_examples'],
"neg": examples['negative_examples'],
"model": "NCES"})
print(response.json())
```

</details>

Expand Down

0 comments on commit 5824bbc

Please sign in to comment.