This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'ryanoasis/vim-devicons' | |
" fugitive - git support | |
Plug 'tpope/vim-fugitive' | |
Plug 'shougu/unite.vim' | |
"autocompletion related | |
"Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
## | |
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
# User-specific files | |
*.rsuser | |
*.suo | |
*.user | |
*.userosscache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'ryanoasis/vim-devicons' | |
" fugitive - git support | |
Plug 'tpope/vim-fugitive' | |
Plug 'shougu/unite.vim' | |
"autocompletion related | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
absurd :: Void -> a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('C:\Users\matej\AppData\Local\nvim\plugged') | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" fugitive - git support | |
Plug 'tpope/vim-fugitive' | |
" nerd tree | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyBind | |
open System | |
let strToInt (str: string) = | |
try | |
str |> int |> Some | |
with | |
| :? FormatException -> None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""source : https://nilimeshhalder.medium.com/how-to-find-optimal-parameters-for-catboost-using-gridsearchcv-for-regression-in-python-ef778b60d95d""" | |
def Snippet_199(): | |
print() | |
print(format('How to find optimal parameters for CatBoost using GridSearchCV for Regression','*^82')) | |
import warnings | |
warnings.filterwarnings("ignore") | |
# load libraries | |
from sklearn import datasets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""In essence, here is how I would do it to reduce memory consumption and improve performance: | |
Load json file (no way to stream it in python AFAIK) | |
Chunk the array of dictionaries into smaller chunks | |
Convert chunk into objects | |
Call bulk_create | |
Garbage collect after every loop iteration""" | |
import json | |
import gc |