ExtractedFeature¶
-
class
database.models.ExtractedFeature(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModelContent-based data extracted from a SymbolicMusicFile.
Extracted with a Software. Must be a feature of one and only one SymbolicMusicFile. Must be a instance of a FeatureType.
-
instance_of_feature¶ models.ForeignKey – A reference to a FeatureType of object that is the type of this ExtractedFeature
-
value¶ ArrayField(models.FloatField) – An array of the value(s) of this ExtractedFeature. One dimensional have values with an 1-Dimensional array
-
extracted_with¶ models.ForeignKey – A reference to the Software that was used to extract this ExtractedFeature
-
feature_of¶ models.ForeignKey – A reference to to the SymbolicMusicFile from which this ExtractedFeature was extracted.
See also
database.models.CustomBaseModel,database.models.FeatureType,database.models.Software,database.models.SymbolicMusicFileAttributes Summary
codeGet the code of this ExtractedFeature descriptionGet the description of this ExtractedFeature extracted_withAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. extracted_with_idA wrapper for a deferred-loading field. feature_ofAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. feature_of_idA wrapper for a deferred-loading field. groupGet the group of this ExtractedFeature idA wrapper for a deferred-loading field. instance_of_featureAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. instance_of_feature_idA wrapper for a deferred-loading field. is_histogramCheck if this ExtractedFeature is a histogram nameGet the name of this ExtractedFeature objectsresearchcorpus_setAccessor to the related objects manager on the forward and reverse sides of a many-to-many relation. valueA wrapper for a deferred-loading field. Methods Summary
clean()Check if length of value is the same as the declared dimensions get_next_by_date_created(*[, field, is_next])get_next_by_date_updated(*[, field, is_next])get_previous_by_date_created(*[, field, is_next])get_previous_by_date_updated(*[, field, is_next])save(*args, **kwargs)Call the max_and_min() method of FeatureType after saving Attributes Documentation
-
code¶ Get the code of this ExtractedFeature
-
description¶ Get the description of this ExtractedFeature
-
extracted_with Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
extracted_with_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
feature_of Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
feature_of_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
group¶ Get the group of this ExtractedFeature
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
instance_of_feature Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
instance_of_feature_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
is_histogram¶ Check if this ExtractedFeature is a histogram
A ExtractedFeatures are histograms if their dimensions are more than 1.
-
name¶ Get the name of this ExtractedFeature
-
objects= <django.db.models.manager.Manager object>¶
-
researchcorpus_set¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
value A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Methods Documentation
-
clean() → None¶ Check if length of value is the same as the declared dimensions
-
get_next_by_date_created(*, field=<django.db.models.fields.DateTimeField: date_created>, is_next=True, **kwargs)¶
-
get_next_by_date_updated(*, field=<django.db.models.fields.DateTimeField: date_updated>, is_next=True, **kwargs)¶
-
get_previous_by_date_created(*, field=<django.db.models.fields.DateTimeField: date_created>, is_next=False, **kwargs)¶
-
get_previous_by_date_updated(*, field=<django.db.models.fields.DateTimeField: date_updated>, is_next=False, **kwargs)¶
-
save(*args, **kwargs) → None¶ Call the max_and_min() method of FeatureType after saving
-