Gradient descent training + Added all dataset + graphs improvements
This commit is contained in:
@@ -7,7 +7,7 @@ import type {
|
||||
} from 'chart.js';
|
||||
import { computed } from 'vue';
|
||||
import { Chart } from 'vue-chartjs';
|
||||
import { colors } from '@/types/graphs';
|
||||
import { colors, gridColor, gridColorBold } from '@/types/graphs';
|
||||
import type { Iteration } from '@/types/perceptron';
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -157,10 +157,28 @@ function getPerceptronDecisionBoundaryDataset(
|
||||
x: {
|
||||
type: 'linear',
|
||||
position: 'bottom',
|
||||
grid: {
|
||||
color: function (context) {
|
||||
if (context.tick.value == 0) {
|
||||
return gridColorBold;
|
||||
}
|
||||
|
||||
return gridColor;
|
||||
},
|
||||
},
|
||||
},
|
||||
y: {
|
||||
type: 'linear',
|
||||
position: 'left',
|
||||
grid: {
|
||||
color: function (context) {
|
||||
if (context.tick.value == 0) {
|
||||
return gridColorBold;
|
||||
}
|
||||
|
||||
return gridColor;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}"
|
||||
|
||||
Reference in New Issue
Block a user