Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WS-23-SAS-02
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Mutote
WS-23-SAS-02
Commits
bff88c7b
Commit
bff88c7b
authored
1 year ago
by
Michael Mutote
Browse files
Options
Downloads
Patches
Plain Diff
plots
parent
e11011ec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DisplayWindow.py
+4
-1
4 additions, 1 deletion
DisplayWindow.py
with
4 additions
and
1 deletion
DisplayWindow.py
+
4
−
1
View file @
bff88c7b
...
...
@@ -106,7 +106,7 @@ class Advanced(QMainWindow):
self
.
check_labels
=
[
'
Cut
'
,
'
Colour
'
,
'
Clarity
'
,
'
Carat
'
,
'
Depth
'
,
'
Table
'
,
'
X
'
,
'
Y
'
,
'
Z
'
]
self
.
graph_selector_X
.
addItems
((
self
.
check_labels
+
[
'
price
'
]))
self
.
graph_selector_Y
.
addItems
((
self
.
check_labels
+
[
'
price
'
]))
self
.
regression_model
.
addItems
([
"
Linear Regression
"
,
"
Gradient Descent
"
,
"
Random Forest
"
])
self
.
regression_model
.
addItems
([
"
Linear Regression
"
,
"
XG Boost
"
,
"
XGBRegressor
"
,
"
Neural Network
"
])
self
.
checkboxes
=
[]
...
...
@@ -127,8 +127,11 @@ class Advanced(QMainWindow):
self
.
checkboxes
.
append
(
checkbox
)
# Store checkboxes in the list
def
handle_checkbox_state
(
self
):
RegressionModel
.
Advanced_selections
=
[]
for
i
,
checkbox
in
enumerate
(
self
.
checkboxes
):
state
=
checkbox
.
checkState
()
if
state
==
Qt
.
CheckState
.
Unchecked
:
RegressionModel
.
Advanced_selections
.
append
(
checkbox
.
text
())
RegressionModel
.
Advanced_selections
[
checkbox
.
text
()]
=
(
state
==
Qt
.
CheckState
.
Checked
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment