-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add split train test method
- Loading branch information
Hernán Morales Durand
committed
Dec 11, 2023
1 parent
182681f
commit d49e02c
Showing
6 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Extension { #name : 'DataFrame' } | ||
|
||
{ #category : '*AI-DataPartitioners' } | ||
DataFrame >> splitTrainTest: aCollectionOfProportions shuffle: aBoolean [ | ||
"Split the receiver's data into train and test sets. | ||
xTrain and yTrain sets are used for training and fitting the model. | ||
xTest and yTest sets are used for testing the model. | ||
" | ||
|
||
^ AIRandomPartitioner | ||
split: self | ||
withProportions: aCollectionOfProportions | ||
shuffle: aBoolean. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Package { #name : #'AI-DataPartitioners' } | ||
Package { #name : 'AI-DataPartitioners' } |