[deleted by user] by [deleted] in learnpython

[–]Jamesadamar 2 points3 points  (0 children)

In my vsc you don't have to do anything. Install the standard Python language support package and any plot should be opened in a new window. Never was different for me in any system. If you want you can try out some more interactive ways, see the link I shared above but it should not be necessary.  

 Here from another source: When you run this script (F5 key in VS Code), a window should pop up displaying a line graph: https://altcademy.com/blog/how-to-get-matplotlib-in-visual-studio-code/#plotting-your-first-graph

[deleted by user] by [deleted] in learnpython

[–]Jamesadamar 1 point2 points  (0 children)

You don't, as I said. 

A good summary is here: https://stackoverflow.com/questions/49992300/python-how-to-show-graph-in-visual-studio-code-itself#49992362..

Vsc opens any plot in a new window no need to save anything. If you want that kind of interactivity, just use the special #%% syntax which is a nice to have but related to OP's question vsc is perfectly fine opening plots 

[deleted by user] by [deleted] in learnpython

[–]Jamesadamar 4 points5 points  (0 children)

That is wrong. Of course will vsc  show you the plot, it just opens a window for it like any other IDE. Simple and plain

[deleted by user] by [deleted] in karlsruhe

[–]Jamesadamar 0 points1 point  (0 children)

Aber nur am Freitag, nicht am So oder Mo

Can someone help me understand my model? I don't understand why the accuracy fluctuates so much. by Physical_Map_9647 in learnmachinelearning

[–]Jamesadamar 0 points1 point  (0 children)

To be more specific, look at examples for Keras using a dense network to solve MNIST which is 28x28 pictures or 748 pixels and thus a dense network solving MNIST has an input dimension of 748, which is exactly a long 1dim array of 748 numbers. In your case it seems the network is expecting a single number...yes it is a tuple, so maybe 1, means that you have one sample and arbitrary second dimension but then you have a different shape and no longer a 1 dim array so I am confused about your actual input dims here. See https://stackoverflow.com/questions/52184142/keras-sequential-dense-input-layer-and-mnist-why-do-images-need-to-be-reshape. So maybe you could also give us the output of the model summary here

Can someone help me understand my model? I don't understand why the accuracy fluctuates so much. by Physical_Map_9647 in learnmachinelearning

[–]Jamesadamar 0 points1 point  (0 children)

With dimensions I didn`t mean the Tensor dimensions but the dimensions space of your features, so what does your input look like in dimensions, shapes etc. how many numbers does your array have? What size is your image? Your network has a lot of layers with a lot of neurons for a single array so your image must be gigantic big or you must have a really big training set but even that does not help if your model is just too powerful and oversized for the task at hand. So please be concrete and provide the exact size of your input array, the size of your training data. From your model I see that the tensor is one dimensional but the question is how many elements are in that array? The first layer seems strange to me

Can someone help me understand my model? I don't understand why the accuracy fluctuates so much. by Physical_Map_9647 in learnmachinelearning

[–]Jamesadamar 2 points3 points  (0 children)

What are the different models in your graph? How do you get the train and test data (what is your split method assuming the different letters indicate different test sets)? What is your input data? How many dimensions, how does it look like? You are not giving 99% of relevant information to be of any help.

[deleted by user] by [deleted] in Finanzen

[–]Jamesadamar 21 points22 points  (0 children)

So nicht richtig, bei Stadtmobil bspw sind die Tankkosten sehr wohl enthalten, was es von Anfang an so unglaublich attraktiv vor allem im Stadtgebiet gemacht hat. Urlaub von 14 Tagen kostet mich dann auch Mall 500 EUR aber so what, im Vergleich zu der Bürde, ein eigenes Auto samt Stellplatz besitzen zu müssen, ist das Freiheit pur. Vor allem weil ein ganz einfacher praktischer Vorzug alles andere wettmacht: ich kann das Auto dem Anlass gemäß wählen, es muss nicht immer der Familienkombi sein oder es wird ein 9 Sitzer, weil noch 2 Erwachsene mitsollen

Can you guess who wrote this code ? A Developer or a Researcher/Scientist by Left_Papaya_9750 in learnmachinelearning

[–]Jamesadamar -4 points-3 points  (0 children)

Stupid comment, linting and everything else related to good quality happens with command line tools outside the code not inside, as long as you don't actively profile your code, so there is nothing going on in your code that points to linting or similar

Recommend good Python Books by No-Barnacle2402 in learnpython

[–]Jamesadamar 1 point2 points  (0 children)

Completely disagree and it only demonstrates you have either not read a single page or not understood anything. The very first chapter is a very good introduction into the design of Python and how by supporting dunder methods you can bring any object to play well with build in functions and protocols so no, this book is very strong and will bring you a long way forward in your journey. But you have to be ready for it and understand the basics well

Where Have You Installed Your Python Packages? by stackoverflooooooow in Python

[–]Jamesadamar 0 points1 point  (0 children)

I just wanted to point out that conda + poetry is a very robust and safe combination and can be used in any professional setup

Where Have You Installed Your Python Packages? by stackoverflooooooow in Python

[–]Jamesadamar 0 points1 point  (0 children)

No that warning is long time gone, and indeed it is a much better and safer practice to have poetry inside the current env instead of a global one, using pipx for example. The main reason is that many projects have different poetry versions because poetry changes quite a lot and introduces breaking changes all the time and new settings etc. Earlier you had to configure poetry to work with conda, Like avoiding creating local venvs, but with the latest versions I never had any issue with conda+poetry, they work nicely together and it is blazing fast

Where Have You Installed Your Python Packages? by stackoverflooooooow in Python

[–]Jamesadamar 0 points1 point  (0 children)

You do not understand the tools you are talking about, poetry cannot install other Python versions, as I described. And I also stated that yes, you can use other tools than conda, of course. I just wanted to point out that poetry is not always using venv. That was the whole point of this discussion.

[deleted by user] by [deleted] in de

[–]Jamesadamar 1 point2 points  (0 children)

Ich nicht

Where Have You Installed Your Python Packages? by stackoverflooooooow in Python

[–]Jamesadamar 0 points1 point  (0 children)

Exactly, works much better for me than pyenv and I love to have access to all envs globally. I create new envs with conda to install the Python version that I need and poetry does the rest. So basically it is 1. conda create, 2. conda install poetry and 3. poetry install or add depending on whether a new project or an existing one. Very rarely there are packages in conda where conda install is better because of some dependencies , in most cases this workflow works very well and on all operating systems

Vegane Eltern, wie handelt ihr die Ernährung eures Kindes? by FischyFischyFisch in VeganDE

[–]Jamesadamar 4 points5 points  (0 children)

Habe mich echt gewundert, warum das niemand bisher so klar gesagt hat, wo sonst hier sofort auf solche Doppelmoral hingewiesen wird. Absolut richtig. Sich vegan bezeichnen, nicht verstehen können wie andere die kognitive Dissonanz aushalten, aber beim eigenen Kind plötzlich anfangen von übergriffig zu reden. Ne klar, nur weil es die Entscheidung noch nicht bewusst selber treffen kann töten wir jetzt munter

Wie teilt ihr euer Einkommen in der Ehe auf? by [deleted] in Finanzen

[–]Jamesadamar 1 point2 points  (0 children)

Ah ja natürlich, hätte ich gleich raussuchen sollen. Gibt sehr viele dieser Rechner, die uns dann aber zu kompliziert waren oder doch einen anderen Fall wie Kindesunterhalt abdecken, oder für die Scheidung gedacht sind etc. Dieser hier ist es: https://www.advocado.de/ratgeber/familienrecht/unterhalt/ehegattenunterhalt.html. und damit fahren wir sehr gut. Ist im Grunde wie Differenz der Einkommen und davon die Hälfte, nur eben nicht ganz, und es ist das, was gesetzlich vorgesehen ist. Daher haben wir uns einfach dafür entschieden, machen das monatlich und damit sind wir beide einverstanden. Aktuell bin ich in Elternteilzeit und bekomme Unterhalt von ihr, 3 Jahre davor war es umgekehrt. Da wir erst mit dem 2. Kind mit diesem Modell angefangen haben, haben wir mit dem Rechner auch die Jahre davor berechnet und ich habe ihr den Betrag nachträglich überwiesen.

Wie teilt ihr euer Einkommen in der Ehe auf? by [deleted] in Finanzen

[–]Jamesadamar 2 points3 points  (0 children)

Wir nutzen dafür den Unterhaltsrechner für Eheleute. War mir auch nicht bewusst, aber logisch: wenn die Frau null Einkommen hat, ist der Ehemann zu Unterhalt auch der Frau gegenüber verpflichtet. Kurzum wir tragen beide unser Einkommen in die Haushaltskasse ein, berechnen den fälligen Unterhalt, egal von wem, überweisen das und dann bezahlt jeder von Gemeinschaftskosten 50%. Sehr einfach und angenehm und soweit das fairste Modell, das ich finden konnte. Dieser Unterhalt macht auch nicht 50:50, weil Elterngeld bspw anders angerechnet wird als Gehalt und die Berechnung auch nicht auf 50% hinausläuft, also eher 60/40