From 7142e51869950d39bc3a24a83658d2b0e09009f5 Mon Sep 17 00:00:00 2001 From: bruno boutin Date: Fri, 24 Nov 2023 12:08:20 +0100 Subject: [PATCH] reference to rowCount should be done via dataSetInfo.rowCount (#23) --- inst/qml/predictiveAnalytics.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/qml/predictiveAnalytics.qml b/inst/qml/predictiveAnalytics.qml index 710059a..880897e 100644 --- a/inst/qml/predictiveAnalytics.qml +++ b/inst/qml/predictiveAnalytics.qml @@ -332,12 +332,12 @@ Form name: "resampleForecastHorizon" id: "resampleForecastHorizon" label: qsTr("Prediction window") - defaultValue: Math.floor((dataSetModel.rowCount() / 5)*0.6) + defaultValue: Math.floor((dataSetInfo.rowCount / 5)*0.6) } IntegerField{ name: "resampleInitialTraining" label: qsTr("Training window") - defaultValue: Math.floor((dataSetModel.rowCount() / 5)*1.4) + defaultValue: Math.floor((dataSetInfo.rowCount / 5)*1.4) } IntegerField{name: "resampleSkip"; label: qsTr("Skip between training slices");defaultValue: resampleForecastHorizon.value}