Comments (2)
I cannot reproduce this using your code on my system (Linux).
me@keyboard /tmp/spmf-test
$ ls -1
contextPrefixSpan.txt
spmf.jar
test.py
from spmf import Spmf
import pathlib
spmf_jar_dir = pathlib.Path(__file__).parent.absolute()
spmf = Spmf("PrefixSpan",
input_filename="contextPrefixSpan.txt",
spmf_bin_location_dir=spmf_jar_dir,
output_filename="output.txt", arguments=[1, "", True])
spmf.run()
$ python3 test.py
>/tmp/spmf-test/spmf.jar
============= PREFIXSPAN 0.99-2016 - STATISTICS =============
Total time ~ 2 ms
Frequent sequences count : 5
Max memory (mb) : 8.822776794433594
minsup = 4 sequences.
Pattern count : 5
===================================================
A few ideas:
- Can you try running the
java
command in your Windows command line?- (
java -jar <your_path>spmf.jar run PrefixSpan contextPrefixSpan.txt output.txt 1 "" True
) - This is the same command Python tries to execute in your code.
- It might not be able to find your java executable, not the
jar
file.
- (
- You mention "spfm.jar". I hope that's just a typo here and your file isn't actually called that.
from spmf-py.
Hi,
the problem was the java executable, thank you for replying.
from spmf-py.
Related Issues (8)
- Gives different output when tested on other algorithm HOT 5
- How to handle datasets with timestamps for algorithms that involve time constraints? HOT 1
- ValueError: invalid literal for int() with base 10: '#SUP:' HOT 3
- Windows PermissionError in temp file HOT 6
- permission error spmf
- When I ran this problem, I did not find a suitable solution, could you please take a look at this problem, if you can solve it, I would be very grateful, thank you
- [help] [frequent itemset mining] Understanding output with negative value HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spmf-py.