Comments (2)
The tests_n500
file contains the examples in the test suite presented in the paper. If you want to test a model with different tests, you have to create your own test or suite, and then you can export it as file if you want to. Take a look at this tutorial.
from checklist.
I'm sorry to bother again, but I haven't been able to solve it. It's like it cannot access properly the "new" tests_n500 file and I haven't found where I can specify to use this new evaluation dataset or "where I have to change what". Moreover, I didn't find where I can specify the gold labels for the new customized tests_n500.
Thanks again
IndexError Traceback (most recent call last)
in
1 pred_path = '/Users/Marta/opt/anaconda3/lib/python3.6/site-packages/checklist/release_data/sentiment/predictions/TextBlobPred_AMI2019_en_training.txt'
----> 2 suite.run_from_file(pred_path, overwrite=True)
3 suite.visual_summary_table()
~/opt/anaconda3/lib/python3.6/site-packages/checklist/test_suite.py in run_from_file(self, path, file_format, format_fn, ignore_header, overwrite)
248 format_fn=format_fn,
249 ignore_header=ignore_header)
--> 250 self.run_from_preds_confs(preds, confs, overwrite=overwrite)
251
252 def run(self, predict_and_confidence_fn, verbose=True, **kwargs):
~/opt/anaconda3/lib/python3.6/site-packages/checklist/test_suite.py in run_from_preds_confs(self, preds, confs, overwrite)
220 p = preds[slice(*self.test_ranges[n])]
221 c = confs[slice(*self.test_ranges[n])]
--> 222 t.run_from_preds_confs(p, c, overwrite=overwrite)
223
224 def run_from_file(self, path, file_format=None, format_fn=None, ignore_header=False, overwrite=False):
~/opt/anaconda3/lib/python3.6/site-packages/checklist/abstract_test.py in run_from_preds_confs(self, preds, confs, overwrite)
309 self._check_create_results(overwrite)
310 self.update_results_from_preds(preds, confs)
--> 311 self.update_expect()
312
313 def run_from_file(self, path, file_format=None, format_fn=None, ignore_header=False, overwrite=False):
~/opt/anaconda3/lib/python3.6/site-packages/checklist/abstract_test.py in update_expect(self)
128 def update_expect(self):
129 self._check_results()
--> 130 self.results.expect_results = self.expect(self)
131 self.results.passed = Expect.aggregate(self.results.expect_results, self.agg_fn)
132
/home/marcotcr/work/checklist/checklist/expect.py in expect(self)
/home/marcotcr/work/checklist/checklist/expect.py in (.0)
/home/marcotcr/work/checklist/checklist/expect.py in expect_fn(xs, preds, confs, labels, meta)
IndexError: index 0 is out of bounds for axis 0 with size 0
from checklist.
Related Issues (20)
- IndexError when running test HOT 3
- Release of fine-tuned checkpionts HOT 1
- mltests module? HOT 1
- Uhandled TypeError when running Sentiment analysis test suite HOT 6
- Encoding issue in Qindows with TestSuite.to_raw_file HOT 1
- Text Generation model for negation HOT 1
- 4. The CheckList process.ipynb : pipe([example]) incompatible type HOT 4
- How to load in tests and templates from tsv HOT 1
- Potential Case-Sensitivity Issue When Testing SQuAD HOT 1
- Using functions to convert slot words into different forms HOT 1
- Invoking pip in setup.py breaks custom flags HOT 5
- Is there a way to save all the failed test cases in some text file or in a list? HOT 1
- Google colab HOT 1
- Need to pin notebook version - 7.0.1 breaks install - AttributeError: module 'notebook' has no attribute 'nbextensions' HOT 3
- suite.visual_summary_table() API results in JS error while loading the html table
- Read the 'pkl' file under Windows, prompt 'an integer is required (get type bytes)'
- Reproducibility Issues When Templating
- Requesting hyperparameter details HOT 1
- editor.synonyms breaks on specific input HOT 1
- Minor fix to Wordnet text generation score HOT 1
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 checklist.