Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FBurkhardt committed Jul 30, 2024
1 parent 36e68b6 commit a9f75f9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

Version 0.88.11
--------------
* removed hack in Praat script

Version 0.88.10
--------------
* SVM C val defaults to 1
Expand Down
2 changes: 1 addition & 1 deletion nkululeko/constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION="0.88.10"
VERSION="0.88.11"
SAMPLING_RATE = 16000
8 changes: 4 additions & 4 deletions nkululeko/feat_extract/feinberg_praat.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@ def compute_features(file_index):
)

# add pca data
pcaData = run_pca(df) # Run jitter and shimmer PCA
df = pd.concat([df, pcaData], axis=1) # Add PCA data
pca_data = run_pca(df) # Run jitter and shimmer PCA
df = pd.concat([df, pca_data], axis=1) # Add PCA data
# reload the data so it's all numbers
df.to_csv("processed_results.csv", index=False)
df = pd.read_csv("processed_results.csv", header=0)
# df.to_csv("processed_results.csv", index=False)
# df = pd.read_csv("processed_results.csv", header=0)
# df.sort_values('voiceID').head(20)
# ## Next we calculate the vocal-tract length estimates

Expand Down
15 changes: 7 additions & 8 deletions tests/exp_emodb_os_svm.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ save = True
[DATA]
databases = ['emodb']
emodb = ./data/emodb/emodb
emodb.split_strategy = specified
emodb.test_tables = ['emotion.categories.test.gold_standard']
emodb.train_tables = ['emotion.categories.train.gold_standard']
emodb.split_strategy = speaker_split
target = emotion
labels = ['anger', 'happiness']
labels = ['anger', 'boredom', 'disgust', 'fear']
[FEATS]
type = os
type = praat
scale = standard
[MODEL]
type = svm
tuning_params = ['C']
scoring = recall_macro
C = [10, 1, 0.1, 0.01, 0.001, 0.0001]
#tuning_params = ['C']
#scoring = recall_macro
#C = [10, 1, 0.1, 0.01, 0.001, 0.0001]
[PLOT]

0 comments on commit a9f75f9

Please sign in to comment.