7d40903e021cbf8893feeef0a7654aab53ef06c2,catalyst/contrib/scripts/check_index_model.py,,parse_args,#,8
Before Change
default="l2",
choices=["l2", "angulardist", "cosinesimil"]
)
parser.add_argument(
"-b",
"--batch-size",
default=128,
type=int,
metavar="N",
help="mini-batch size "
)
parser.add_argument("-k", "--recall-at", default="1,3,5,10", type=str)
return parser.parse_args()
After Change
parser = argparse.ArgumentParser()
build_args(parser)
args = parser.parse_args()
return args
def main(args, _=None):
print("[== Loading features ==]")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: Scitator/catalyst
Commit Name: 7d40903e021cbf8893feeef0a7654aab53ef06c2
Time: 2019-01-23
Author: scitator@gmail.com
File Name: catalyst/contrib/scripts/check_index_model.py
Class Name:
Method Name: parse_args
Project Name: sony/nnabla-examples
Commit Name: 337a691ce42b3d9b43ccbf57b20a2830944cb45c
Time: 2020-03-20
Author: Takuya.Narihira@sony.com
File Name: imagenet-classification/infer.py
Class Name:
Method Name: get_args
Project Name: regel/loudml
Commit Name: 12de208521da9bf7be6bd9c25551693184c3bd46
Time: 2018-05-25
Author: vianney@redmintnetwork.fr
File Name: loudml/loudml/faker.py
Class Name:
Method Name: main
Project Name: HDI-Project/ATM
Commit Name: 18bcdb8709d92129701032658484de259a6444cd
Time: 2019-03-29
Author: pvkdeveloper@gmx.com
File Name: atm/cli.py
Class Name:
Method Name: _get_parser