neuralogic.core.constructsο
Submodulesο
neuralogic.core.constructs.factoriesο
- class AtomFactory[source]ο
Bases:
object- class Predicate(hidden=False, special=False)[source]ο
Bases:
object- get(name: str) BaseRelation[source]ο
- get(name: str) BaseRelation[source]ο
neuralogic.core.constructs.functionο
- class Aggregation[source]ο
Bases:
object- AVG: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- CONCAT: ConcatAggregation = <neuralogic.core.constructs.function.concat.ConcatAggregation object>ο
- COUNT: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- MAX: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- MIN: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- SOFTMAX: SoftmaxAggregation = <neuralogic.core.constructs.function.softmax.SoftmaxAggregation object>ο
- SUM: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- class Combination[source]ο
Bases:
object- AVG: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- CONCAT: ConcatCombination = <neuralogic.core.constructs.function.concat.ConcatCombination object>ο
- COSSIM: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- COUNT: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- CROSSSUM: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- ELPRODUCT: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- MAX: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- MIN: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- PRODUCT: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- SOFTMAX: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- SPARSEMAX: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- SUM: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- class F[source]ο
Bases:
object- avg: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- avg_agg: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- concat: ConcatCombination = <neuralogic.core.constructs.function.concat.ConcatCombination object>ο
- concat_agg: ConcatAggregation = <neuralogic.core.constructs.function.concat.ConcatAggregation object>ο
- cossim: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- count: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- count_agg: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- crossum: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- elproduct: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- exp: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- identity: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- inverse: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- leaky_relu: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- log: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- lukasiewicz: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- max: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- max_agg: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- min: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- min_agg: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- norm: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- product: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- relu: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- reshape: Reshape = <neuralogic.core.constructs.function.reshape.Reshape object>ο
- reverse: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- sigmoid: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- signum: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- slice: Slice = <neuralogic.core.constructs.function.slice.Slice object>ο
- softmax: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- softmax_agg: SoftmaxAggregation = <neuralogic.core.constructs.function.softmax.SoftmaxAggregation object>ο
- softmax_comb: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- sparsemax: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- sparsemax_comb: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- sqrt: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- sum: CombinationFunction = <neuralogic.core.constructs.function.function.CombinationFunction object>ο
- sum_agg: AggregationFunction = <neuralogic.core.constructs.function.function.AggregationFunction object>ο
- tanh: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- transp: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- class FContainer(nodes, function: Function)[source]ο
Bases:
object- functionο
- property nameο
- nodesο
- class Function(name: str, *, namespace: str = '', operator: str | None = None, can_flatten: bool = False)[source]ο
Bases:
object- can_flattenο
- name: strο
- namespaceο
- operator: str | Noneο
- class Transformation[source]ο
Bases:
object- EXP: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- IDENTITY: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- INVERSE: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- LEAKY_RELU: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- LOG: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- LUKASIEWICZ: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- NORM: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- RELU: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- RESHAPE: Reshape = <neuralogic.core.constructs.function.reshape.Reshape object>ο
- REVERSE: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- SIGMOID: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- SIGNUM: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- SLICE: Slice = <neuralogic.core.constructs.function.slice.Slice object>ο
- SOFTMAX: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- SPARSEMAX: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- SQRT: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- TANH: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
- TRANSP: TransformationFunction = <neuralogic.core.constructs.function.function.TransformationFunction object>ο
neuralogic.core.constructs.java_objectsο
neuralogic.core.constructs.metadataο
- class Metadata(learnable: bool | None = None, transformation: str | TransformationFunction | CombinationFunction | None = None, combination: str | CombinationFunction | None = None, aggregation: str | AggregationFunction | None = None, duplicit_grounding: bool | None = None)[source]ο
Bases:
object- aggregationο
- combinationο
- duplicit_groundingο
- learnableο
- transformationο
neuralogic.core.constructs.predicateο
neuralogic.core.constructs.relationο
- class BaseRelation(predicate: Predicate, terms=None, function: TransformationFunction | CombinationFunction = None, negated: bool = False)[source]ο
Bases:
object- property T: BaseRelationο
- functionο
- negatedο
- predicateο
- termsο
- class WeightedRelation(weight, predicate: Predicate, fixed=False, terms=None, function: TransformationFunction | CombinationFunction = None)[source]ο
Bases:
BaseRelation- property T: WeightedRelationο
- attach_activation_function(function: Transformation | Combination)[source]ο
- fixed() WeightedRelation[source]ο
- is_fixedο
- weightο
- weight_nameο