Code Monkey home page Code Monkey logo

Comments (6)

xrotwang avatar xrotwang commented on September 13, 2024

I think just a function formulated in LingPy 2.5 (including the input data) would be nice for me. This would give me an idea of

  • what functionality would be a minimal viable product
  • what performance is expected for this functionality

This function can just be handed to timeit.timeit, and the benchmark is ready to go.

from lingpy3.

LinguList avatar LinguList commented on September 13, 2024

Okay, you are thinking of the general methods for cognate detection here? Maybe also alignments? I'll try and submit something later today or early tomorrow.

from lingpy3.

SimonGreenhill avatar SimonGreenhill commented on September 13, 2024

I meant something like this:

import cProfile


cProfile.run("""
from lingpy.basic.workflow import Workflow
wf = Workflow('KSL.qlc')
wf.cognate_detection(export='tsv,html')
""")

(which doesn't really tell me much, to be fair, although there seems to be a LOT of calls to len(..) = 130k? )

@xrotwang I guess the workflow example is a good candidate for a m.v.p.?

from lingpy3.

LinguList avatar LinguList commented on September 13, 2024

As to the workflow-class, I'd say we discard it, as workflows are to complicated to handle the possibilities, and we can put them in howtos, or do you think they are important?

As to the profiling: good point. If we want to get a bit more speed, it seems like the right time to think about it, and it is possible, that I introduced some stupid things (I was young and foolish...)

from lingpy3.

SimonGreenhill avatar SimonGreenhill commented on September 13, 2024

No, I agree about workflows being removed in favour of howtos. And premature optimisation is a bad thing, but it'd be worth keeping an (not very close) eye on given the rewrite means you can change API etc.

from lingpy3.

LinguList avatar LinguList commented on September 13, 2024

Yep, and for me it is also important that, say, things which are more or less optimized or work fast enough, should not be much slower than lingpy2.

from lingpy3.

Related Issues (10)

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.