Comments (2)
Hello!
Thank you for using OCTIS :)
Not a silly question because I've realized there's something to fix in the code and in the documentation :)
Every model has a method called "partitioning". If you pass "False" then the whole dataset will be used as training, the dataset will be split (as the default). You must call this method before training or optimization. For example:
model = ETM(num_topics=25)
model.partitioning(False)
model_output = model.train_model(dataset)
However, some models have also the parameter "use_partitions" in the initialization which can be set to "False" to obtain the same effect. I think this is probably the easiest way to do it, but not all models have this parameter (it seems everyone has it except LSI and LDA). I think I'm going to fix this for the next release. See the example below:
model = ETM(num_topics=25, use_partitions=False)
model_output = model.train_model(dataset)
Thank you for your patience.
Silvia
from octis.
Thank you for your response.
It worked.
Grazie mille!
from octis.
Related Issues (20)
- Docker image failed with OCTIS in requirement HOT 7
- problems partitioning custom dataset
- Dependency incompatibility HOT 2
- AttributeError: module 'numpy' has no attribute 'int'. HOT 1
- Input contains NaN, infinity or a value too large for ('float64') HOT 2
- Cannot install OCTIS HOT 4
- Attribute Error HOT 1
- OCTIS install error
- cy
- OCTIS install fails due to gensim version HOT 3
- Preprocessing custom dataset without removing punctuation HOT 1
- How do I handle this error
- Python 3.12.1 pip Installation Error HOT 3
- Can I get the original dataset?
- Error calculating coherence score for BERTopic model trained on Indic language HOT 1
- doc2bow error when running lda optimizer described in your docs HOT 1
- Specify GPU ID in OCTIS
- numpy memory error on a dataset with 4M tweets HOT 1
- Error get.vocabulary in optimizing results HOT 1
- AttributeError: 'list' object has no attribute 'lower' preprocessor.preprocess_dataset when num_processes != None 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 octis.