Git Product home page Git Product logo

Comments (3)

iiSeymour avatar iiSeymour commented on June 23, 2024

Hello @Serka-M

Bonito does store model checkpoints after every epoch but unfortunately you have run into an issue just prior to that.

The traceback suggests that your converted references.npy file has more encoded bases in that it’s expecting.

Can you load the file and check for the highest index?

>>> import numpy as np
>>> r = np.load("path/to/references.npy")
>>> np.max(r)
4

The max index expected is 4 - where the indexes {0, 1, 2, 3, 4} map to the labels {N, A, C, G, T}.

Chris.

from bonito.

Serka-M avatar Serka-M commented on June 23, 2024

Hey Chris,

The converted Taiyaki dataset is for modified base detection, so it has one extra nucleotide letter.

Is there a possibility for a "quick fix" by editing some lines in Bonito code to make it all work?

from bonito.

iiSeymour avatar iiSeymour commented on June 23, 2024

Okay that explains it - the labels for the model are define in the config so the quick fix would be to add the extra label, this might not be the most effective way to handle modified base however.

from bonito.

Related Issues (20)

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.