Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mikulatomas committed Dec 21, 2021
1 parent b5d23e7 commit a47cc8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![PyPI version](https://badge.fury.io/py/fcapsy-experiments.svg)](https://badge.fury.io/py/fcapsy-experiments)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# fcapsy-experiments
📦 Package of experiments for [fcapsy](https://github.com/mikulatomas/fcapsy) library.
Expand Down Expand Up @@ -33,3 +34,4 @@ fcapsy-experiments requires:
* numpy
* sklearn
* fuzzycorr
* binsdpy
7 changes: 6 additions & 1 deletion fcapsy_experiments/typicality/concept_typicality.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,14 @@ def _init(self, concept, count, typicality_functions, extra_columns):
function = typicality["func"]
args = typicality["args"].values()
if args:
row.extend([function(item, concept, *arg) for arg in args])
row = []
for name, arg in typicality["args"].items():
print(name)
row.append(function(item, concept, *arg))
else:
row.append(function(item, concept))



df.loc[item] = row

Expand Down

0 comments on commit a47cc8a

Please sign in to comment.