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

Some Questions on the Procedures #4

Open
soroushzargar opened this issue Aug 18, 2019 · 3 comments
Open

Some Questions on the Procedures #4

soroushzargar opened this issue Aug 18, 2019 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@soroushzargar
Copy link
Collaborator

Is there any reason you called compress inside? I changed it, but I thought there might be something I didn't figure out.

int ret = lilcom_compress(dim, input_data, input_stride,

@soroushzargar soroushzargar added the help wanted Extra attention is needed label Aug 21, 2019
@soroushzargar soroushzargar changed the title Why Compress? Some Questions on the Procedures Aug 21, 2019
@soroushzargar
Copy link
Collaborator Author

if (!PyArg_ParseTupleAndKeywords(args, keywds, "OO|ii", kwlist,

I remember you said we should make the input values obligatory in order to prevent issues made by default values. Shall I do it here and leave the default parameter assignment to the python wrapper?

Currently, I have done so but I ask just to get that if I was right doing that. If you say keep the defualts I will revert the change.

@soroushzargar
Copy link
Collaborator Author

inputArray = numpy.array([random.randrange(-(2**15), 2**15 - 1) for i in range (n_samples)]).astype(numpy.int16)

For testing, currently, I am creating an array using random-number generator. (I do acknowledge that it should be k-dimensional where k is not necessarily 1.) Is using random number generator enough for this step of test, or we should use a sample procedure to make it more real? I do realize that the next step of testing an audio file but my question here is restricted to very basic level of test.

@danpovey
Copy link
Owner

You can make them obligatory, sure.
Random number generator is good. We're just testing that it doesn't crash.
Make sure that you use a very wide range of scales; it's the denormal and nearly-infinite numbers that are likely to cause a crash, and those need to be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants