Skip to content

Instantly share code, notes, and snippets.

View alberduris's full-sized avatar
💪
Montando movidas

Alber alberduris

💪
Montando movidas
View GitHub Profile
@alberduris
alberduris / index.ts
Last active July 9, 2023 12:39
STREAMING FROM CF WORKER ACCOMPLISHED!!
import { ChatOpenAI } from "langchain/chat_models";
import { HumanChatMessage } from "langchain/schema";
import { CallbackManager } from "langchain/callbacks";
interface Env {
OPENAI_API_KEY: string;
}
export default {
async fetch(
@alberduris
alberduris / SparseTensors.ipynb
Last active August 6, 2020 15:41
[Sparse Tensors on Pytorch & Tensorflow] #Others #JupyterNotebook #CodeSnippet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alberduris
alberduris / Tree_PytorchTensors.ipynb
Last active August 6, 2020 15:41
Python class which implements a base Node for creating Trees with Pytorch Tensors #Others #JupyterNotebook #CodeSnippet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alberduris
alberduris / SkLearn_TrainTestSplit_OneHot_Behaviour.ipynb
Last active August 6, 2020 15:42
[SkLearn TrainTestSplit OneHot Behaviour] #JupyterNotebook #CodeSnippet #@todo: BUG: `stratify=data_holder.Y_data` instead of `stratify=data_holder.Y_data` #@bug: ¿strange behaviour? If stratify is one_hot then changes w.r.t string or int encoded #@bug: See SkLearn_TrainTestSplit_OneHot_Behaviour.ipynb #Others
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.