Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed back numpy data to RDF graph, in batches #16739

Open
arizzi opened this issue Oct 24, 2024 · 0 comments
Open

Feed back numpy data to RDF graph, in batches #16739

arizzi opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
experiment Affects an experiment / reported by its software & computimng experts new feature

Comments

@arizzi
Copy link
Contributor

arizzi commented Oct 24, 2024

Feature description

As discussed during CHEP24, it would be very useful to have the option
to not only extract data from RDF graph in numpy/torch/tf format but
also to be able to feed back into RDF the data in batches (e.g. for NN
inference not supported in SOPHIE)

When exporting/importing it would be useful to have the option to
explode/flatten vecops of same length.

Pseudo code example:

def processBatch(nparray)
    #do something with pyTorch
    ...
    return outTensor

rdf.BatchProcess(inputCols={"Jet_pt","Jet_eta","Jet_mass","MET_pt"},
outputVectorCols={"Jet_regressedPt", "Jet_regressedMass"},
outputScalarCols={}, processBatch,
batchSize=100000,flattenRVec=True,broadCastScalars=True)

Alternatives considered

No response

Additional context

No response

@vepadulano vepadulano added the experiment Affects an experiment / reported by its software & computimng experts label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experiment Affects an experiment / reported by its software & computimng experts new feature
Projects
None yet
Development

No branches or pull requests

2 participants