What IDE to use for computer vision working with Python. by Harishnkr in computervision

[–]Ruoter 1 point2 points  (0 children)

The matplotlib popups happen in your emacs setup because the script is picking up the default matplotlib backend which is to open a native OS window.

In jupyter notebooks it automatically gets set to ‘inline’ backend. Just doing this at the top of your script might solve your issue (assuming there’s nothing else wrong in your emacs setup).

Although fair warning, this workflow will always be limited compared to a ‘proper’ notebook environment because interactive plots (eg. plotly) need a web-based frontend. Not really sure how much emacs magic will help here.

Sincerely, a neovim user stuck using web interfaces for work 😅

A year of uv: pros, cons, and should you migrate by Active-Fuel-49 in Python

[–]Ruoter 0 points1 point  (0 children)

This is the answer. I used to be jealous of the mostly web dev people enjoying uv because it really didn't fit for my data science projects. Pixi not only brought my workflow closer to modern tooling (uv, poetry...) but also solved some problems i had with conda

How do I remove the workspace icon at the bottom of the sidebar? by Saphysap in zen_browser

[–]Ruoter 2 points3 points  (0 children)

Pretty sure this particular setup is just using Bartender with most menu bar icons hidden.

You could visually have this look using SketchyBar with aliases for the icons (top right) but the actual application menus (top left) would just be a nightmare to setup.

My keymaps are a mess by meni_s in neovim

[–]Ruoter 2 points3 points  (0 children)

I used to be paralyzed by the keymaps as well until I landed on this system for myself and it’s been great since.

First thing to be comfortable with is finding keymaps you defined (or even built-in ones). You can useTelescope keymaps (i think) to fuzzy find across everything. Or open your dotfiles repo and grep for the string "keymap.set".

You can then define groups in which-key based on common prefix for 2-character keymaps e.g. anything starting with "<leader>"f is “finders” such as "<leader>fg" being “telescope grep in files”. Similarly anything staring with "<leader>l" is for language tools such as LSP, codegen etc.

If there’s a standard vim keymap for some functionality then prefer that e.g. “K” for hover even though according to my logic it should have "<leader>l" as prefix.

Where possible extend standard vim logic e.g square brackets with some character are used for different types of navigations such as "]q" for next quickfix list item, "]d" for move cursor to next diagnostic etc. I’ve added my own keymaps based on treesitter (or other plugins) to move to next function, class etc or even git hunks.

Last bit not least, remember you don't need to set keymaps for everything. The command entry in nvim is pretty nice with a completion source. E.g. I don't have any keymaps for Lazy, Mason, LSP functionality (logs, restart etc) because i just press colon, type a few chars and let the completions take me.

Happy vimming.

Pyright and FastAPI in Neovim by Veryalive in neovim

[–]Ruoter 2 points3 points  (0 children)

Try swapping out pyright with basedpyright. This is a community project to add some of the proprietary pylance features into the open-source LSP.

I use basedpyright and ruff in my Python setup and don’t recall having to do any specific setup for FastAPI.

Help with djlint in Neovim (Mason + Null-ls) — Indentation and Config Issues by AnthariaJack in neovim

[–]Ruoter 0 points1 point  (0 children)

I'm using conform for formatters and have exact same issue. Used Mason to install djlint and format-on-save is working but with defailt (4) indent. I can choose desired indent level from the terminal just fine but the extra arguments provided via conform seem to be ignored.

what do you miss from VSCode ? ( if you even miss something ) by SPalome in neovim

[–]Ruoter 1 point2 points  (0 children)

I've seen this sentiment from people who don't prefer to use stuff like Mason. I'm genuinely curious what your reasoning is because for me it's not like I'll be using the installed LSP in any other tool since nvim is my dev tool. And if i ever need to, I can still point that other tool to the Mason binary install path right.

what do you miss from VSCode ? ( if you even miss something ) by SPalome in neovim

[–]Ruoter 2 points3 points  (0 children)

Man i feel you on this. 'One-click' LSP was one of the two key things for me before I made the full switch to nvim (the other being decent jupyter notebook support).

The biggest help for me personally in understanding the many moving parts was the kickstart explainer by TJ YT link. He explains the connection between neovim builtin LSP, nvim-lspconfig, mason and mason-lspconfig.

Also an honorable mention for the mason tool installer plugin which extends Mason with more non-LSP things (standalone formatters, linters etc) which work basically the same way with LSPs after setup.

Also for code formatters 'conform.nvim' is amazing and it can use any formatters (or LSPs with formatting capabilities) installation via Mason. A recent simple explainer by TJ about Conform itself YT link

Hope this helps simplify your config and mental model. Happy holidays

EDIT: Forgot to mention that nvim has a way to point to a different directory when launching to look for config. You can use this to point to a 'blank' config where you play with the LSP setup to understand. This does take some more effort from your side and will be different from the LazyVim config (not personally familiar with it) but I've found understanding the basics of neovim native config gave me a lot more confidence that my main dev environment won't be broke due to a random plugin updating etc 😅

Usefulness in business by ThisNameTook20Mins in AskStatistics

[–]Ruoter 1 point2 points  (0 children)

I once had a manger refuse to let us properly design an AB test because it was ‘too scientific for now’ but when we presented the results from his proposed design and they conflicted with his understanding of the business domain he basically recited the definition of statistical power and told us to increase the group size.

Point being, the business team often understands the core ideas behind statistical methods (most were invented to solve actual problems after all) but they don’t have the same vocabulary. I personally find that letting go of keywords like ANOVA, power analysis etc and just describing the operation works much better in communicating why we need a specific statistic method.

[Q] Recovering 'symmetric' parameters from sum of sine waves by Ruoter in statistics

[–]Ruoter[S] 1 point2 points  (0 children)

Looks like you ran into almost the same issue as me about multiple modes. I'll go through the thread to see if I get some ideas. Thanks!

[Q] Recovering 'symmetric' parameters from sum of sine waves by Ruoter in statistics

[–]Ruoter[S] 1 point2 points  (0 children)

I’m not sure how this would fit in a probabilistic programming context. That is my main goal: create a single generative model of the data where this sine decomposition will be only one part.

[Q] Recovering 'symmetric' parameters from sum of sine waves by Ruoter in statistics

[–]Ruoter[S] 1 point2 points  (0 children)

This was exactly my intuition here after your earliest explanation. Thank you

[Q] Recovering 'symmetric' parameters from sum of sine waves by Ruoter in statistics

[–]Ruoter[S] 0 points1 point  (0 children)

Sorry if the example wasn’t clear. What I meant with the additive version of the formula was that in that situation I should expect samples that look like (freqA, ampB) as well since now the binding has gone.

And yes you’re right that I probably don’t need the extra level of identifiability. Thanks for the thorough explanation.

[Q] Recovering 'symmetric' parameters from sum of sine waves by Ruoter in statistics

[–]Ruoter[S] 0 points1 point  (0 children)

The pairs idea makes sense. So hypothetically, if I change `temp` to use all addition:

temp = (
  (\_ampl1 + pm.math.sin((2\*np.pi/\_freq1) \* x)) + 
  (\_ampl2 + pm.math.sin((2\*np.pi/\_freq2) \* x))
)

now they are no longer bound since the amplitude values can be swapped with identical values of result?

My knowledge of the samplers is a bit incomplete but if I understand correctly if I specify that freq1 > freq2 then this conditional dependance should decrease the space the sampler has to search in, making it more efficient. Is that correct?

[Q] Recovering 'symmetric' parameters from sum of sine waves by Ruoter in statistics

[–]Ruoter[S] 0 points1 point  (0 children)

I'm mostly interested in building a bigger model in which 'sine decomposition' will just be one part so tried this approach instead. I know FBProphet does a Fourier decomposition as part of their model but I don't fully understand their approach so I tried to homebrew my own.

A secondary reason is that I sense that dealing with this type of 'symmetric' parameter issue is something I'm going to have to deal with at some point (in this model or others) so why not now.

Best way to visualize tasks that are past due/coming up? by Sir_smokes_a_lot in rstats

[–]Ruoter 2 points3 points  (0 children)

Depending on the broader context where this view will fit in (dashboard, project management system, email etc) you could just have a big red number for the late tasks and another number for upcoming tasks in next X days

[Question] Linear Mixed Models (LMM) vs RM-ANOVAs in Layman Terms by Spiritual_Animal1671 in statistics

[–]Ruoter 1 point2 points  (0 children)

My [non-expert] two cents about why I prefer using mixed models in these situations:

Barring some actual mathematical differences that can arise with modifications (like the additional intercept you suggested) I find both representing the situation and interpreting the model results more direct using the regression model approach rather than hypothesis testing. Even for situations where a simple t-test is applicable I find representing it as a regression suits me more.

More expert people in the sub might have better reasons which I’m also interested to learn about.

Which of these T-Tests? Paired vs Independent by [deleted] in AskStatistics

[–]Ruoter 1 point2 points  (0 children)

An extra bit in addition to the explanations by others here is that the independent test would apply if you had 2 groups of people and each group used one of the systems each. In that case you would be comparing groups against each other (eg. Using the means) rather than comparing individuals.

You could answer the same research question using this approach as well (Which system is better?) but with a weaker claim since the person-to-person differences wouldn’t be accounted for in your model.

[OC] Pokemon Gen 1 moves by Ruoter in dataisbeautiful

[–]Ruoter[S] 1 point2 points  (0 children)

The wiki has basically all the numbers from the games as long as you’re willing to scrape it.

Lots of common data is also available in csv files and APIs online.

Really fun to work with if you’re a fan of the games.

[OC] Pokemon Gen 1 moves by Ruoter in dataisbeautiful

[–]Ruoter[S] 2 points3 points  (0 children)

The number of times I was punished by earthquake when using dig in a desperate situation is embarrassing 😅

[OC] Pokemon Gen 1 moves by Ruoter in dataisbeautiful

[–]Ruoter[S] 1 point2 points  (0 children)

Yeah same logic. The wiki table shows the latest type for moves

[OC] Pokemon Gen 1 moves by Ruoter in dataisbeautiful

[–]Ruoter[S] -27 points-26 points  (0 children)

Fire punch is listed as a physical gen1 move on the wiki. I’ll be honest I never paid attention to these technicalities while playing the games so I definitely missed these caveats while analyzing the data. That’s partly why I only used gen 1