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

ValueError: invalid literal for int() with base 10: '#SUP:' #4

Open
nhamzehn opened this issue Jul 2, 2021 · 3 comments
Open

ValueError: invalid literal for int() with base 10: '#SUP:' #4

nhamzehn opened this issue Jul 2, 2021 · 3 comments

Comments

@nhamzehn
Copy link

nhamzehn commented Jul 2, 2021

Thank you for writing this wrapper.
I have an issue when using to_pandas_dataframe() method with 'Apriori_with_hash_tree'.
The following error is appear: ValueError: invalid literal for int() with base 10: '#SUP:'

from spmf import Spmf
spmf = Spmf("Apriori_with_hash_tree",
            input_filename="contextPasquier99_name.txt",
            output_filename="output.txt",
            arguments=[0.40, 30, 2])

spmf.run()
print(spmf.to_pandas_dataframe())
spmf.to_csv("output.csv")

contextPasquier99_name.txt

Regards.

@LoLei
Copy link
Owner

LoLei commented Aug 14, 2021

Could you please post the entire stacktrace? The to_pandas_dataframe method may assume that a different algorithm was used, which may interfere with some others. https://github.com/LoLei/spmf-py/blob/master/spmf/__init__.py#L142

@vanderson-rocha
Copy link

Hi guys. I made some changes to resolve this issue. Can I post the code here?

@LoLei
Copy link
Owner

LoLei commented Sep 30, 2021

@vanderson-rocha Cool, feel free to open a pull request with the changes!

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

No branches or pull requests

3 participants