58 lines
2.3 KiB
Text
58 lines
2.3 KiB
Text
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"id": "ad547a73",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"ename": "OSError",
|
|
"evalue": "[Errno 22] Invalid argument: '.\\\\clustering-benchmark-master\\\\src\\\\main\\resources\\\\datasets\\x07rtificial\\x02d-3c-no123.arff'",
|
|
"output_type": "error",
|
|
"traceback": [
|
|
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
|
"\u001b[1;31mOSError\u001b[0m Traceback (most recent call last)",
|
|
"\u001b[1;32m<ipython-input-2-2bb53bd2604e>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 2\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[1;31m# data = arff.loadarff(open('file.arff','r'))\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 4\u001b[1;33m \u001b[0mdata\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0marff\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mloadarff\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mopen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'.\\clustering-benchmark-master\\src\\main\\resources\\datasets\\artificial\\2d-3c-no123.arff'\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;34m'r'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
|
|
"\u001b[1;31mOSError\u001b[0m: [Errno 22] Invalid argument: '.\\\\clustering-benchmark-master\\\\src\\\\main\\resources\\\\datasets\\x07rtificial\\x02d-3c-no123.arff'"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"from scipy.io import arff\n",
|
|
"\n",
|
|
"# data = arff.loadarff(open('file.arff','r'))\n",
|
|
"data = arff.loadarff(open('.\\clustering-benchmark-master\\src\\main\\resources\\datasets\\artificial\\2d-3c-no123.arff','r'))\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "13b7eb33",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.8.8"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|