kamangir
commited on
Commit
•
664a799
1
Parent(s):
5872c3d
setup - kamangir/bolt#689
Browse files- .gitignore +6 -0
- abcli/fashion_mnist.sh +25 -0
- fashion_mnist/__init__.py +5 -0
- fashion_mnist/__main__.py +23 -0
- fashion_mnist/urls.py +1 -0
- setup.py +11 -0
.gitignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.ipynb_checkpoints
|
2 |
+
__pycache__
|
3 |
+
.DS_Store
|
4 |
+
*.egg-info
|
5 |
+
*.log
|
6 |
+
, .json
|
abcli/fashion_mnist.sh
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#! /usr/bin/env bash
|
2 |
+
|
3 |
+
function fashion_mnist() {
|
4 |
+
local task=$(abcli_unpack_keyword $1 help)
|
5 |
+
|
6 |
+
if [ $task == "help" ] ; then
|
7 |
+
abcli_help_line "fashion_mnist task_1" \
|
8 |
+
"run fashion_mnist task_1."
|
9 |
+
|
10 |
+
if [ "$(abcli_keyword_is $2 verbose)" == true ] ; then
|
11 |
+
python3 -m fashion_mnist --help
|
12 |
+
fi
|
13 |
+
|
14 |
+
return
|
15 |
+
fi
|
16 |
+
|
17 |
+
if [ "$task" == "task_1" ] ; then
|
18 |
+
python3 -m fashion_mnist \
|
19 |
+
task_1 \
|
20 |
+
${@:2}
|
21 |
+
return
|
22 |
+
fi
|
23 |
+
|
24 |
+
abcli_log_error "-fashion_mnist: $task: command not found."
|
25 |
+
}
|
fashion_mnist/__init__.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name = "fashion_mnist"
|
2 |
+
|
3 |
+
version = "1.1.22"
|
4 |
+
|
5 |
+
description = "fashion-mnist + hugging-face + awesome-bash-cli"
|
fashion_mnist/__main__.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import argparse
|
2 |
+
from . import *
|
3 |
+
from abcli import logging
|
4 |
+
import logging
|
5 |
+
|
6 |
+
logger = logging.getLogger(__name__)
|
7 |
+
|
8 |
+
parser = argparse.ArgumentParser(name, description=f"{name}-{version}")
|
9 |
+
parser.add_argument(
|
10 |
+
"task",
|
11 |
+
type=str,
|
12 |
+
help="TBD",
|
13 |
+
)
|
14 |
+
args = parser.parse_args()
|
15 |
+
|
16 |
+
success = False
|
17 |
+
if args.task == "TBD":
|
18 |
+
success = True
|
19 |
+
else:
|
20 |
+
logger.error(f"-{name}: {args.task}: command not found.")
|
21 |
+
|
22 |
+
if not success:
|
23 |
+
logger.error(f"-{name}: {args.task}: failed.")
|
fashion_mnist/urls.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
urlpatterns = []
|
setup.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from setuptools import setup
|
2 |
+
|
3 |
+
from fashion_mnist import *
|
4 |
+
|
5 |
+
setup(
|
6 |
+
name=name,
|
7 |
+
author="kamangir",
|
8 |
+
version=version,
|
9 |
+
description=description,
|
10 |
+
packages=[name],
|
11 |
+
)
|