Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename and reorganize data splitters
- Loading branch information
Showing
21 changed files
with
125 additions
and
121 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
3 changes: 0 additions & 3 deletions
3
lib/src/model_selection/split_indices_provider/data_splitter.dart
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
lib/src/model_selection/split_indices_provider/data_splitter_factory.dart
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
lib/src/model_selection/split_indices_provider/data_splitter_type.dart
This file was deleted.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
lib/src/model_selection/split_indices_provider/split_indices_provider.dart
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,3 @@ | ||
abstract class SplitIndicesProvider { | ||
Iterable<Iterable<int>> getIndices(int numberOfSamples); | ||
} |
9 changes: 9 additions & 0 deletions
9
lib/src/model_selection/split_indices_provider/split_indices_provider_factory.dart
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,9 @@ | ||
import 'package:ml_algo/src/model_selection/split_indices_provider/split_indices_provider_type.dart'; | ||
import 'package:ml_algo/src/model_selection/split_indices_provider/split_indices_provider.dart'; | ||
|
||
abstract class SplitIndicesProviderFactory { | ||
SplitIndicesProvider createByType(SplitIndicesProviderType splitterType, { | ||
int numberOfFolds, | ||
int p, | ||
}); | ||
} |
22 changes: 11 additions & 11 deletions
22
..._provider/data_splitter_factory_impl.dart → .../split_indices_provider_factory_impl.dart
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
3 changes: 3 additions & 0 deletions
3
lib/src/model_selection/split_indices_provider/split_indices_provider_type.dart
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,3 @@ | ||
enum SplitIndicesProviderType { | ||
lpo, kFold, | ||
} |
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
41 changes: 0 additions & 41 deletions
41
test/model_selection/data_splitter/data_splitter_factory_impl_test.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.