Comments (6)
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.
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.
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.
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.
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.
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)
- General Folder Structure HOT 4
- NEXUS output format tweaks. HOT 8
- basic wordlist statistics: external functions or built into the main class? HOT 6
- Documenting Wordlist Metrics
- Test methods for correct data structure HOT 12
- ISchema as a shortcut for similar orthographies HOT 2
- Wordlist Specification HOT 13
- Model specification for Sound-Class Models
- Need numpy just for sqrt? 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 lingpy3.