Comments (2)
Cheers @turpaultn !
We could definitely add support for non-uniform discrete sampling, e.g. via a new choose_weighted
distribution tuple.
IIUC in the example above you're providing the probability for each event being chosen, and then choosing one of these events, but that's not the same as co-occurrence probabilities, right? That is, it's different to say
- Choose between alarm/dog with prob .7/.3
- Give me a soundscape where alarm and dog co-occur with probability X.
My understanding from today's meeting was that the team is interested in the latter, but maybe I misunderstood?
Regardless, it looks like we'd need something like choose_weighted
to support Gibbs or related types of sampling methods?
from scaper.
Cool !
Well, I understand it's not clear, because I've put this little piece of code.
But the algorithm is like this:
- Sample an event from the 10 classes (uniformly)
- Take the dictionnary of co-occurence above (what's the probability of alarm/dog when "cat" is the first event)
- Sample an event using this dictionnary (for example, no chance a vacuum_cleaner would be picked, there is only dog and alarm left)
The idea was that if an alarm ("bip") appeared for example, there is a lot of chance you can hear another one.
As I said, it is simple, but at least we were able to have a class balance closer to the real set without going spending too much time.
Regardless, it looks like we'd need something like choose_weighted to support Gibbs or related types of sampling methods?
I agree.
from scaper.
Related Issues (20)
- Fades of length 0 fail HOT 1
- Test more platforms. HOT 1
- Write JAMS annotations in consistent order
- Scaper sometimes produces soundscapes with clipping if ref_db is set badly. HOT 1
- Remove ann.sandbox.scaper.soundscape_audio_path and isolated_events_audio_path
- Create more regression data for #132 + other test strengthening HOT 1
- Consolidate jams metadata saving for generate and generate_from_jams
- Reverb and clipping/peak normalization
- Change sox version pin in setup.py from ==1.4.0 to >=1.4.0
- redundant unnecessary repetitive calling of _validate_source_file() in nested loops HOT 2
- General and speech recognition enhancement HOT 2
- scaper.scaper_exceptions.ScaperError: Label value must match one of the available labels: [] HOT 1
- 'Choose' with non uniform distribution HOT 6
- Soxbindings problem python3.7 HOT 3
- Applying reverb to each source file HOT 1
- Multi-speaker mixture
- Sum-up of isolated events and soundscape are not equal, when Reverb=None
- Does fg_spec need to store all provided paths?
- Please expose the soundfile subtype parameter as a self parameter
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 scaper.