Coder Social home page Coder Social logo

nf-cats's People

Contributors

chomechome avatar lurunchik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aadorian

nf-cats's Issues

TypeError: must be real number, not FBetaMeasure

Thanks for the nice work!

I get the following error, using a fresh environment. It appears to be something going wrong in AllenNLP, but I couldn't get to the bottom of it with a bit of searching and debugging.

Traceback (most recent call last):
  File "nfcats/train.py", line 54, in <module>
    main()
  File "nfcats/train.py", line 40, in main
    train_model(params=params, serialization_dir=str(serialization_dir))
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/commands/train.py", line 242, in train_model
    file_friendly_logging=file_friendly_logging,
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/commands/train.py", line 466, in _train_worker
    metrics = train_loop.run()
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/commands/train.py", line 528, in run
    return self.trainer.train()
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/training/trainer.py", line 930, in train
    metrics, epoch = self._try_train()
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/training/trainer.py", line 963, in _try_train
    train_metrics = self._train_epoch(epoch)
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/training/trainer.py", line 752, in _train_epoch
    description = training_util.description_from_metrics(metrics)
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/training/util.py", line 413, in description_from_metrics
    for name, value in metrics.items()
  File "/home/sean/miniconda3/envs/nfcats3/lib/python3.7/site-packages/allennlp/training/util.py", line 414, in <listcomp>
    if not name.startswith("_")
TypeError: must be real number, not FBetaMeasure

Maybe it's a library version incompatibility and worth freezing some versions?

Also, for my case, I don't really need to train -- I was just interested in model inference. Could you release the trained model?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.