parent
8f1ca2a081
commit
655408f595
Binary file not shown.
@ -1 +0,0 @@ |
||||
{"duration": 348.3931636810303, "input_args": {"clf": "RandomForestClassifier(bootstrap=True, class_weight=None, criterion='entropy',\n max_depth=None, max_features='auto', max_leaf_nodes=None,\n min_impurity_decrease=0.0, min_impurity_split=None,\n min_samples_leaf=1, min_samples_split=2,\n min_weight_fraction_leaf=0.0, n_estimators=119,\n n_jobs=None, oob_score=False, random_state=None,\n verbose=0, warm_start=False)", "params": "{'n_estimators': [40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119], 'criterion': ['gini', 'entropy']}", "eachAlgor": "'RF'", "factors": "[1, 1, 1, 1, 1]", "AlgorithmsIDsEnd": "576"}} |
Binary file not shown.
@ -1 +0,0 @@ |
||||
{"duration": 258.0446789264679, "input_args": {"clf": "KNeighborsClassifier(algorithm='ball_tree', leaf_size=30, metric='minkowski',\n metric_params=None, n_jobs=None, n_neighbors=24, p=2,\n weights='distance')", "params": "{'n_neighbors': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], 'weights': ['uniform', 'distance'], 'algorithm': ['brute', 'kd_tree', 'ball_tree'], 'metric': ['chebyshev', 'manhattan', 'euclidean', 'minkowski']}", "eachAlgor": "'KNN'", "factors": "[1, 1, 1, 1, 1]", "AlgorithmsIDsEnd": "0"}} |
Binary file not shown.
@ -0,0 +1,51 @@ |
||||
<template> |
||||
<div id="PCPDataView" class="parcoords" style="width: 300px; height:200px"></div> |
||||
</template> |
||||
|
||||
<script> |
||||
import 'parcoord-es/dist/parcoords.css'; |
||||
import ParCoords from 'parcoord-es'; |
||||
import * as d3Base from 'd3' |
||||
|
||||
// attach all d3 plugins to the d3 library |
||||
const d3 = Object.assign(d3Base) |
||||
|
||||
import { EventBus } from '../main.js' |
||||
|
||||
export default { |
||||
name: 'PCPData', |
||||
data () { |
||||
return { |
||||
PCPDataReceived: '', |
||||
colorsValues: ['#6a3d9a','#b15928','#e31a1c'] |
||||
} |
||||
}, |
||||
methods: { |
||||
PCPView () { |
||||
d3.selectAll("#PCPDataView > *").remove(); |
||||
const target_names = JSON.parse(this.PCPDataReceived[3]) |
||||
const DataSet = JSON.parse(this.PCPDataReceived[5]) |
||||
const target = JSON.parse(this.PCPDataReceived[6]) |
||||
var colors = this.colorsValues |
||||
|
||||
this.pc = ParCoords()("#PCPDataView") |
||||
.data(DataSet) |
||||
.color(function(d, i) { return colors[target_names[i]] }) |
||||
.hideAxis([target,'_id','InstanceID']) |
||||
.bundlingStrength(0) // set bundling strength |
||||
.smoothness(0) |
||||
.showControlPoints(false) |
||||
.render() |
||||
.brushMode('1D-axes') |
||||
.reorderable() |
||||
.interactive(); |
||||
}, |
||||
}, |
||||
// fix when selecting points the pcp should update! |
||||
mounted() { |
||||
EventBus.$on('emittedEventCallingDataPCP', data => { this.PCPDataReceived = data }) |
||||
EventBus.$on('emittedEventCallingDataPCP', this.PCPView) |
||||
EventBus.$on('ResponsiveandChange', this.PCPView) |
||||
} |
||||
} |
||||
</script> |
Loading…
Reference in new issue