Ejemplo n.º 1
0
class AutoencoderSettings(ff.PersistenceSettings):
    id_provider = ff.UserSpecifiedIdProvider(key='_id')
    key_builder = ff.StringDelimitedKeyBuilder(seperator='|')
    database = ff.LmdbDatabase(
        path='/home/user/autoencoder',
        map_size=1e10,
        key_builder=key_builder)
Ejemplo n.º 2
0
class Settings(ff.PersistenceSettings):
    """
    These settings make it possible to specify an id (rather than automatically
    generating one) when analyzing a file, so that it's easier to reference
    them later.
    """
    id_provider = ff.UserSpecifiedIdProvider(key='_id')
    key_builder = ff.StringDelimitedKeyBuilder()
    database = ff.LmdbDatabase(
            'mdct_synth', map_size=1e10, key_builder=key_builder)
Ejemplo n.º 3
0
class Settings(ff.PersistenceSettings):
    id_provider = ff.UserSpecifiedIdProvider(key='_id')
    key_builder = ff.StringDelimitedKeyBuilder(seperator='|')
    database = ff.LmdbDatabase(path='onsetdata', key_builder=key_builder)
    event_log = ff.EventLog(
        path='onsetdataevents', channel=ff.InMemoryChannel())
Ejemplo n.º 4
0
class ModelSettings(ff.PersistenceSettings):
    id_provider = ff.UserSpecifiedIdProvider(key='_id')
    key_builder = ff.StringDelimitedKeyBuilder(seperator='|')
    database = ff.LmdbDatabase(path=path.join(base_path, 'soundalike'),
                               map_size=1e11,
                               key_builder=key_builder)
Ejemplo n.º 5
0
class Settings(ff.PersistenceSettings):
    id_provider = ff.UuidProvider()
    key_builder = ff.StringDelimitedKeyBuilder()
    database = ff.LmdbDatabase(path='timbre', key_builder=key_builder)
Ejemplo n.º 6
0
 class Settings(ff.PersistenceSettings):
     id_provider = provider
     key_builder = ff.StringDelimitedKeyBuilder('|')
     database = ff.LmdbDatabase(path,
                                key_builder=key_builder,
                                map_size=map_size)