09
This commit is contained in:
parent
5c09c8f0de
commit
4b305fb143
@ -600,7 +600,7 @@
|
||||
" def __init__(self,FEAUTERES, output_size):\n",
|
||||
" super(NeuralNetworkModel, self).__init__()\n",
|
||||
" self.fc1 = torch.nn.Linear(FEAUTERES,OUTPUT_SIZE)\n",
|
||||
" self.softmax = torch.nn.Softmax(dim=0)\n",
|
||||
" self.softmax = torch.nn.LogSoftmax(dim=0)\n",
|
||||
" \n",
|
||||
"\n",
|
||||
" def forward(self, x):\n",
|
||||
@ -635,15 +635,15 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"tensor([[0.3356, 0.3335, 0.3320, 0.3359, 0.3320, 0.3325, 0.3326, 0.3328, 0.3349,\n",
|
||||
" 0.3359, 0.3335, 0.3323, 0.3333, 0.3320, 0.3325, 0.3326, 0.3323, 0.3346,\n",
|
||||
" 0.3338, 0.3328],\n",
|
||||
" [0.3308, 0.3327, 0.3350, 0.3315, 0.3335, 0.3331, 0.3334, 0.3323, 0.3333,\n",
|
||||
" 0.3314, 0.3312, 0.3342, 0.3338, 0.3339, 0.3321, 0.3364, 0.3342, 0.3346,\n",
|
||||
" 0.3325, 0.3330],\n",
|
||||
" [0.3337, 0.3338, 0.3330, 0.3326, 0.3346, 0.3344, 0.3340, 0.3349, 0.3319,\n",
|
||||
" 0.3328, 0.3352, 0.3335, 0.3329, 0.3341, 0.3354, 0.3310, 0.3335, 0.3308,\n",
|
||||
" 0.3336, 0.3342]], grad_fn=<SoftmaxBackward0>)"
|
||||
"tensor([[-1.0965, -1.0992, -1.0954, -1.1094, -1.1023, -1.1015, -1.0976, -1.1032,\n",
|
||||
" -1.0983, -1.1051, -1.1022, -1.0982, -1.0961, -1.0947, -1.1029, -1.0879,\n",
|
||||
" -1.1006, -1.0991, -1.1053, -1.0948],\n",
|
||||
" [-1.1062, -1.0984, -1.0988, -1.0943, -1.0954, -1.0947, -1.0944, -1.0975,\n",
|
||||
" -1.0951, -1.0909, -1.0989, -1.0925, -1.0958, -1.1003, -1.1007, -1.1038,\n",
|
||||
" -1.0993, -1.0939, -1.0864, -1.1039],\n",
|
||||
" [-1.0932, -1.0983, -1.1017, -1.0923, -1.0981, -1.0997, -1.1038, -1.0952,\n",
|
||||
" -1.1024, -1.0999, -1.0947, -1.1052, -1.1039, -1.1009, -1.0923, -1.1042,\n",
|
||||
" -1.0960, -1.1028, -1.1042, -1.0971]], grad_fn=<LogSoftmaxBackward0>)"
|
||||
]
|
||||
},
|
||||
"execution_count": 35,
|
||||
@ -728,7 +728,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.2123568688744858, 0.6968768414849735)"
|
||||
"(1.356017852784889, 0.7503830288744844)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -737,7 +737,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.21150285825686388, 0.6274301873453517)"
|
||||
"(1.3751668614859125, 0.687875574407918)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -755,7 +755,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.2260802420329261, 0.7077195050088392)"
|
||||
"(1.1723477356421224, 0.7776075427224514)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -764,7 +764,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.2241674092347734, 0.6447507953340403)"
|
||||
"(1.205798993834593, 0.7143867090844821)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -782,7 +782,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.24119761869811843, 0.7084266352386565)"
|
||||
"(1.0369738594672226, 0.7918680023571008)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -791,7 +791,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.23810926345748165, 0.6451042771297278)"
|
||||
"(1.0813934570616233, 0.7260516083421704)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -809,7 +809,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.2576815719789242, 0.709958750736594)"
|
||||
"(0.9342609466035435, 0.8040070713022982)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -818,7 +818,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.25330778045698965, 0.6465182043124779)"
|
||||
"(0.9875037953410312, 0.7398373983739838)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -836,7 +836,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.2753856425153275, 0.7119622863877431)"
|
||||
"(0.854015181081465, 0.8131997642899234)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -845,7 +845,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(-0.26963572898341726, 0.6489925768822906)"
|
||||
"(0.9146476251133426, 0.7486744432661718)"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -1965,7 +1965,7 @@
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "5e452a224a6c471889d040721fa0b823",
|
||||
"model_id": "441ba9bb6b6441458b5afad3746d89f5",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
@ -12350,8 +12350,8 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"tensor([-1.0438, -0.1988, -0.7277, -0.3142, 0.6025, 1.0181, 0.0447, 0.1792,\n",
|
||||
" -0.2312], grad_fn=<AddBackward0>)"
|
||||
"tensor([ 0.6715, -0.1880, 0.1221, -0.5367, 0.5795, 0.2334, -0.2800, -1.0290,\n",
|
||||
" 1.2367], grad_fn=<AddBackward0>)"
|
||||
]
|
||||
},
|
||||
"execution_count": 61,
|
||||
@ -12436,7 +12436,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.9941680003606091"
|
||||
"1.0345902543767587"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12454,7 +12454,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.7385265700483091"
|
||||
"0.7246376811594203"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12472,7 +12472,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.16526610644257703"
|
||||
"0.18181818181818182"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12490,7 +12490,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.24380165289256198"
|
||||
"0.30578512396694213"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12508,7 +12508,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.19699499165275458"
|
||||
"0.22804314329738057"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12544,7 +12544,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.25191607533469396"
|
||||
"0.2595415027867295"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12562,7 +12562,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.9365942028985508"
|
||||
"0.9353864734299517"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12580,7 +12580,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.8518518518518519"
|
||||
"0.8350515463917526"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12598,7 +12598,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.6652892561983471"
|
||||
"0.6694214876033058"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12616,7 +12616,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.7470997679814384"
|
||||
"0.743119266055046"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12696,7 +12696,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"1.3107004118362546"
|
||||
"1.07579130287881"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12714,7 +12714,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.6413502109704642"
|
||||
"0.6926863572433193"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12732,7 +12732,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.13769751693002258"
|
||||
"0.1413793103448276"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12750,7 +12750,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.18154761904761904"
|
||||
"0.12202380952380952"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
@ -12768,7 +12768,7 @@
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0.1566110397946085"
|
||||
"0.13099041533546327"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
|
Loading…
Reference in New Issue
Block a user