Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Flash CLI and Flash Zero #611

Merged
merged 50 commits into from
Aug 4, 2021
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
57272e9
Use the LightningCLI in the image classification example
carmocca May 10, 2021
216397e
FlashCLI
carmocca May 12, 2021
cf94e2a
Merge branch 'master' into feature/cli-examples
carmocca May 12, 2021
b18a8b9
Merge branch 'master' into feature/cli-examples
carmocca May 12, 2021
1b6de76
Finetune support
carmocca May 12, 2021
d8c28ec
Merge branch 'master' into feature/cli-examples
ethanwharris Jul 21, 2021
4b3786e
Port LightningCLI
ethanwharris Jul 21, 2021
4c7b54f
Update requirements
ethanwharris Jul 21, 2021
68a93d4
Initial commit
ethanwharris Jul 22, 2021
f1134c1
Updates
ethanwharris Jul 22, 2021
23f7bd8
Merge branch 'master' into feature/flash_cli_ethan
ethanwharris Jul 23, 2021
882764a
Updates
ethanwharris Jul 23, 2021
70ccdbf
Updates
ethanwharris Jul 23, 2021
ee18906
Temp fill reqs
ethanwharris Jul 23, 2021
26283e9
Bump PL req
ethanwharris Jul 23, 2021
dcf5183
Test
ethanwharris Jul 23, 2021
2604f34
Update
ethanwharris Jul 23, 2021
f59a3bc
Update
ethanwharris Jul 23, 2021
ef822a5
Remove debug code
ethanwharris Jul 23, 2021
6795abd
Merge branch 'master' into feature/flash_cli_ethan
ethanwharris Jul 30, 2021
079618b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 30, 2021
dcaadc8
Updates
ethanwharris Jul 30, 2021
51d7adc
Add speech recognition
ethanwharris Jul 30, 2021
5b7cee4
Merge branch 'master' into feature/flash_cli_ethan
ethanwharris Jul 30, 2021
a0e192e
Add text classification
ethanwharris Aug 2, 2021
32a0347
Add tabular and seq2seq
ethanwharris Aug 2, 2021
1a20743
Remove extra reqs
ethanwharris Aug 2, 2021
f2add64
Fix test
ethanwharris Aug 2, 2021
5c51c27
Merge branch 'master' into feature/flash_cli_ethan
ethanwharris Aug 2, 2021
433abb1
Add pointcloud
ethanwharris Aug 2, 2021
a5eabc9
Merge branch 'feature/flash_cli_ethan' of https://github.com/PyTorchL…
ethanwharris Aug 2, 2021
d9640ac
Add graph
ethanwharris Aug 2, 2021
2ee48aa
Fix test
ethanwharris Aug 2, 2021
b2c6ede
A fix
ethanwharris Aug 2, 2021
5fe8cb4
Try fix
ethanwharris Aug 2, 2021
787fb58
Try fix
ethanwharris Aug 2, 2021
8fa1b33
Try fix
ethanwharris Aug 2, 2021
2b64560
Add tests
ethanwharris Aug 2, 2021
55c2982
Add click CLI
ethanwharris Aug 2, 2021
1c890ae
Add click CLI
ethanwharris Aug 3, 2021
274ca54
Add some docs
ethanwharris Aug 3, 2021
7484c55
Update docs
ethanwharris Aug 3, 2021
570cd27
Punctuation
ethanwharris Aug 3, 2021
8cbce0f
Add some tests
ethanwharris Aug 3, 2021
19a1262
Update CHANGELOG.md
ethanwharris Aug 3, 2021
184ba1f
Fix test
ethanwharris Aug 3, 2021
ebd14d3
Add some tests
ethanwharris Aug 3, 2021
16e6101
Test
ethanwharris Aug 4, 2021
fbad52e
Updates
ethanwharris Aug 4, 2021
543912c
Try fix
ethanwharris Aug 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
ethanwharris committed Aug 2, 2021
commit f2add64dd022147a7c83f8ce4465778495d51cef
8 changes: 4 additions & 4 deletions tests/tabular/classification/test_data.py
Original file line number Diff line number Diff line change
@@ -68,24 +68,24 @@ def test_normalize():


@pytest.mark.skipif(not _PANDAS_AVAILABLE, reason="pandas is required")
def test_emb_sizes():
def test_embedding_sizes():
self = Mock()
self.codes = {"category": [None, "a", "b", "c"]}
self.cat_cols = ["category"]
# use __get__ to test property with mocked self
es = TabularClassificationData.emb_sizes.__get__(self) # pylint: disable=E1101
es = TabularClassificationData.embedding_sizes.__get__(self) # pylint: disable=E1101
assert es == [(4, 16)]

self.codes = {}
self.cat_cols = []
# use __get__ to test property with mocked self
es = TabularClassificationData.emb_sizes.__get__(self) # pylint: disable=E1101
es = TabularClassificationData.embedding_sizes.__get__(self) # pylint: disable=E1101
assert es == []

self.codes = {"large": ["a"] * 100_000, "larger": ["b"] * 1_000_000}
self.cat_cols = ["large", "larger"]
# use __get__ to test property with mocked self
es = TabularClassificationData.emb_sizes.__get__(self) # pylint: disable=E1101
es = TabularClassificationData.embedding_sizes.__get__(self) # pylint: disable=E1101
assert es == [(100_000, 17), (1_000_000, 31)]