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)
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)
def decorator(cls): provider = \ ff.UserSpecifiedIdProvider(key='_id') \ if user_supplied_id else ff.UuidProvider() class Settings(ff.PersistenceSettings): id_provider = provider key_builder = ff.StringDelimitedKeyBuilder('|') database = ff.LmdbDatabase(path, key_builder=key_builder, map_size=map_size) class Model(cls, Settings): pass Model.__name__ = cls.__name__ Model.__module__ = cls.__module__ return Model
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())
class ModelSettings(ff.PersistenceSettings): id_provider = ff.UserSpecifiedIdProvider(key='_id') key_builder = ff.StringDelimitedKeyBuilder('|') database = RemoteDatabase(soundalike_client, key_builder=key_builder)
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)