Closed yvargasp1 closed 4 years ago
I run the command at the anaconda prompt: "python -m mathematics_dataset.generate --filter = linear_1d" and "python -m mathematics_dataset.generate_to_file --output_drir = '..', and the second just create the empty file without any data" .
np.int32 is not recognized as integer. Please change the two files and it would do the job.
mathematics_dataset\mathematics_dataset\sample\number.py Line number 144 becomes : return isinstance(value, (int, np.int64, np.int32, sympy.Integer)) Like this:
mathematics_dataset\mathematics_dataset\sample\ops.py Add another line below line 205 such that line 202-207 become:
elif (isinstance(self._value, int) or isinstance(self._value, sympy.Integer) or isinstance(self._value, display.Decimal) or isinstance(self._value, np.int64) or isinstance(self._value, np.int32)): return self._value >= 0 Like this:
Or you could clone my forked version: https://github.com/akpandeya/mathematics_dataset
Thanks Avanindra for the PR!
Can you help me , with this problem ? .