What does an Input layer of shape=(None,) or (None,12) actually mean?Skip gram Word2Vec model, neural network implementationKeras — Transfer learning — changing Input tensor shapeLSTM unit: cell state dimensionHow to set the number of neurons and layers in neural networksDimension problem in keras neural networksNumber of parameters keras dense layer with a 2D inputDefining Input Shape for Time Series using LSTM in KerasConnect a dense layer to a LSTM architectureHow to set kernel size (height and width) for 1D convolution layer in CNN Keras R API for doc2vec input?How smaller does the input data get reduced in a LSTM autoencoder

Impossible darts scores

Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)

Hot coffee brewing solutions for deep woods camping

Why do some games show lights shine thorugh walls?

How risky is real estate?

How to create a Tetrix/Sierpinski Tetrahedron fractal radiating from 0,0,0 ? Python or nodes

If the world have massive single giant world tree can it stop earthquake?

I am completely new to Tales from the Floating Vagabond, how do I get started?

How was Hillel permitted to go to the skylight to hear the shiur

What is the origin of Scooby-Doo's name?

Where can I find Intensity vs Observed wavelength graphs?

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?

Sci fi short story, robot city that nags people about health

Folding basket - is there such a thing?

Can the negators "jamais, rien, personne, plus, ni, aucun" be used in a single sentence?

How is hair tissue mineral analysis performed?

When to remove insignificant variables?

What does an Input layer of shape=(None,) or (None,12) actually mean?

Is my Rep in Stack-Exchange Form?

STM Microcontroller burns every time

Should I prioritize my 401(k) over my student loans?

Why did pressing the joystick button spit out keypresses?

Can we put equal sign after aggregate functions in sql?

Why do some professors with PhDs leave their professorships to teach high school?



What does an Input layer of shape=(None,) or (None,12) actually mean?


Skip gram Word2Vec model, neural network implementationKeras — Transfer learning — changing Input tensor shapeLSTM unit: cell state dimensionHow to set the number of neurons and layers in neural networksDimension problem in keras neural networksNumber of parameters keras dense layer with a 2D inputDefining Input Shape for Time Series using LSTM in KerasConnect a dense layer to a LSTM architectureHow to set kernel size (height and width) for 1D convolution layer in CNN Keras R API for doc2vec input?How smaller does the input data get reduced in a LSTM autoencoder






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1












$begingroup$


Is this telling the model that there are two dimensions (i.e. it’s a matrix) but we don’t yet know the size of that particular dimension? If so, how can the model be compiled? Doesn’t the size of each dimension affect the number of nodes in middle layers?










share|improve this question









$endgroup$


















    1












    $begingroup$


    Is this telling the model that there are two dimensions (i.e. it’s a matrix) but we don’t yet know the size of that particular dimension? If so, how can the model be compiled? Doesn’t the size of each dimension affect the number of nodes in middle layers?










    share|improve this question









    $endgroup$














      1












      1








      1


      1



      $begingroup$


      Is this telling the model that there are two dimensions (i.e. it’s a matrix) but we don’t yet know the size of that particular dimension? If so, how can the model be compiled? Doesn’t the size of each dimension affect the number of nodes in middle layers?










      share|improve this question









      $endgroup$




      Is this telling the model that there are two dimensions (i.e. it’s a matrix) but we don’t yet know the size of that particular dimension? If so, how can the model be compiled? Doesn’t the size of each dimension affect the number of nodes in middle layers?







      neural-network keras






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      Nic CottrellNic Cottrell

      1566 bronze badges




      1566 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          3












          $begingroup$

          In keras, a None dimension means that it can be any scalar number, so that you use this model to infer on an arbitrarily long input. This dimension does not affect the size of the network, it just denotes that you are free to select the length (number of samples) of your input during testing.






          share|improve this answer









          $endgroup$















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "557"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f54159%2fwhat-does-an-input-layer-of-shape-none-or-none-12-actually-mean%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3












            $begingroup$

            In keras, a None dimension means that it can be any scalar number, so that you use this model to infer on an arbitrarily long input. This dimension does not affect the size of the network, it just denotes that you are free to select the length (number of samples) of your input during testing.






            share|improve this answer









            $endgroup$

















              3












              $begingroup$

              In keras, a None dimension means that it can be any scalar number, so that you use this model to infer on an arbitrarily long input. This dimension does not affect the size of the network, it just denotes that you are free to select the length (number of samples) of your input during testing.






              share|improve this answer









              $endgroup$















                3












                3








                3





                $begingroup$

                In keras, a None dimension means that it can be any scalar number, so that you use this model to infer on an arbitrarily long input. This dimension does not affect the size of the network, it just denotes that you are free to select the length (number of samples) of your input during testing.






                share|improve this answer









                $endgroup$



                In keras, a None dimension means that it can be any scalar number, so that you use this model to infer on an arbitrarily long input. This dimension does not affect the size of the network, it just denotes that you are free to select the length (number of samples) of your input during testing.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 8 hours ago









                pcko1pcko1

                1,9315 silver badges20 bronze badges




                1,9315 silver badges20 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Data Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f54159%2fwhat-does-an-input-layer-of-shape-none-or-none-12-actually-mean%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    In Tikz, how to set a node's label alignment to the left?Rotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideLine up nested tikz enviroments or how to get rid of themVertically align a tikzpicture and forestDrawing tikz line in the margin for multiple pagesLongtable, contained tikz, padding, custom columns, and an alignment issueTikZ: define arrow starting position based on style and format node labelAlign node name in Tikz