Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ndr cli #178

Merged
merged 7 commits into from
Mar 23, 2021
Merged

Add ndr cli #178

merged 7 commits into from
Mar 23, 2021

Conversation

seungyoon-woo
Copy link
Contributor

@seungyoon-woo seungyoon-woo commented Mar 22, 2021

Summary

This pr includes :

  • CLI support for NDR
  • Handle large number of data

How to test

python -m unittest -v tests/test_ndr.py

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

zhiltsov-max
zhiltsov-max previously approved these changes Mar 22, 2021
Copy link
Contributor

@zhiltsov-max zhiltsov-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix tests

datumaro/plugins/ndr.py Outdated Show resolved Hide resolved
bugfix - memory error
@seungyoon-woo
Copy link
Contributor Author

Squashed all commit into one and delete not related to issue


result = ndr.NDR(source, working_subset='train', seed=12145)

self.assertEqual(2, len(result.get_subset("train")))
self.assertEqual(298, len(result.get_subset("duplicated")))
self.assertEqual(1, len(result.get_subset("train")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it was changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After changing default block shape from (4,4) to (8,8), there was change in train and duplicated subset length

@zhiltsov-max zhiltsov-max merged commit 612edb7 into develop Mar 23, 2021
@zhiltsov-max zhiltsov-max deleted the add-ndr-cli branch March 24, 2021 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants