You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"This is a jupyter notebook file to execute [CLIP](ontolearn.concept_learner.CLIP) and generate predictive results. We recommend you to see the [concept learners](../docs/usage/06_concept_learners.md) guide before continuing with the execution.\n",
10
+
"Also if you have not done it already, from the main directory \"Ontolearn\", run the commands for Datasets mentioned [here](https://ontolearn-docs-dice-group.netlify.app/usage/02_installation#download-external-files) to download the datasets."
11
+
]
12
+
},
13
+
{
14
+
"cell_type": "code",
15
+
"execution_count": 1,
16
+
"id": "japanese-ivory",
17
+
"metadata": {
18
+
"tags": []
19
+
},
20
+
"outputs": [
21
+
{
22
+
"name": "stderr",
23
+
"output_type": "stream",
24
+
"text": [
25
+
"\n",
26
+
"Warning: SQLite3 version 3.40.0 and 3.41.2 have huge performance regressions; please install version 3.41.1 or 3.42!\n",
"Open `uncle_lp.json` where we have stored the learning problem for the concept of 'Uncle' and the path to the 'family' ontology."
47
+
]
48
+
},
49
+
{
50
+
"cell_type": "code",
51
+
"execution_count": 2,
52
+
"id": "beginning-syntax",
53
+
"metadata": {
54
+
"tags": []
55
+
},
56
+
"outputs": [],
57
+
"source": [
58
+
"with open('uncle_lp.json') as json_file:\n",
59
+
" settings = json.load(json_file)"
60
+
]
61
+
},
62
+
{
63
+
"cell_type": "markdown",
64
+
"id": "humanitarian-heating",
65
+
"metadata": {},
66
+
"source": [
67
+
"Create an instance of the class `KnowledeBase` by using the path that is stored in `settings`."
68
+
]
69
+
},
70
+
{
71
+
"cell_type": "code",
72
+
"execution_count": 3,
73
+
"id": "caroline-indiana",
74
+
"metadata": {
75
+
"tags": []
76
+
},
77
+
"outputs": [],
78
+
"source": [
79
+
"kb = KnowledgeBase(path=settings['data_path'])"
80
+
]
81
+
},
82
+
{
83
+
"cell_type": "markdown",
84
+
"id": "lucky-activation",
85
+
"metadata": {},
86
+
"source": [
87
+
"Retreive the IRIs of the positive and negative examples of Uncle from `settings` and create an instance of `PosNegLPStandard`. (more info about this [here](../docs/usage/06_concept_learners.md#configure-the-learning-problem))"
0 commit comments