Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #1426 Resolve flake8 lint ``` >>> Lint for fbcode/pytorch/captum/captum/concept/_core/tcav.py: Advice (FLAKE8) C417 Unnecessary use of map - use a list comprehension instead. See https://github.com/adamchainz/flake8-comprehensions#rules 694 # Retrieves the lengths of the experimental sets so that we can sort 695 # them by the length and compute TCAV scores in batches. 696 exp_set_lens = np.array( >>> 697 list(map(lambda exp_set: len(exp_set), experimental_sets)), dtype=object 698 ) 699 exp_set_lens_arg_sort = np.argsort(exp_set_lens) ``` Reviewed By: cyrjano Differential Revision: D65178563 fbshipit-source-id: 2b302e8c3f315d7372aaf0ea4478becfdbb9d159
- Loading branch information