Commit 6a9e3ca9 authored by David Maxence's avatar David Maxence
Browse files

maj de loading et entrainement sans fold ~ 85% sur test(sur6000 data)

parent d0414aa7
This diff is collapsed.
This diff is collapsed.
......@@ -9,11 +9,11 @@
```
%% Cell type:code id:waiting-today tags:
``` python
samplerate, data = wavfile.read('./7061-6-0-0.wav')
samplerate, data = wavfile.read('../UrbanSound8K/audio/fold1/7061-6-0-0.wav')
```
%% Cell type:code id:computational-europe tags:
``` python
......@@ -106,7 +106,84 @@
-11.512925, -11.512925]]], dtype=float32)>>
%% Cell type:code id:dressed-present tags:
``` python
leaf_representation
```
%%%% Output: execute_result
<tf.Tensor: shape=(99225, 1, 40), dtype=float32, numpy=
array([[[0.20780897, 0.20780897, 0.20780897, ..., 0.20780897,
0.20780897, 0.20780897]],
[[0.20780897, 0.20780897, 0.20780897, ..., 0.20780897,
0.20780897, 0.20780897]],
[[0.20780897, 0.20780897, 0.20780897, ..., 0.20780897,
0.20780897, 0.20780897]],
...,
[[0.21767402, 0.2243576 , 0.2243576 , ..., 0.2582096 ,
0.26002145, 0.26086974]],
[[0.22921395, 0.23622298, 0.23621511, ..., 0.24876428,
0.2451222 , 0.23672509]],
[[0.20780897, 0.20780897, 0.20780897, ..., 0.20780897,
0.20780897, 0.20780897]]], dtype=float32)>
%% Cell type:code id:painful-location tags:
``` python
X = np.stack(leaf_representation.numpy())
```
%% Cell type:code id:alike-enhancement tags:
``` python
X[1]
```
%%%% Output: execute_result
array([[0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897,
0.20780897, 0.20780897, 0.20780897, 0.20780897, 0.20780897]],
dtype=float32)
%% Cell type:code id:terminal-tulsa tags:
``` python
X.shape
X_dim = (128,128,1)
```
%% Cell type:code id:associate-conservative tags:
``` python
X = X.reshape( X_dim)
```
%%%% Output: error
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-25-d4a67893f50d> in <module>
----> 1 X = X.reshape( X_dim)
ValueError: cannot reshape array of size 3969000 into shape (128,128)
%% Cell type:code id:taken-kentucky tags:
``` python
```
......
This diff is collapsed.
model_checkpoint_path: "."
all_model_checkpoint_paths: "."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment