Comments (1)
an API is proposed as follows:
from pytrack import PyTrack, DVC
from pytrack.core.parameter import PyTrackOption
import pandas as pd
class DVC_pd(PyTrackOption):
def _get(self, instance, owner):
name = self.get_name(instance)
return pd.read_csv(f"{name}.csv")
def _set(self, instance, value):
name = self.get_name(instance)
value.to_csv(f"{name}.csv")
@PyTrack(nb_name='CustomDVC.ipynb')
class HelloWorld:
def __init__(self):
self.df = DVC_pd()
self.df_out = DVC.outs('df.csv') # in the current version this is mandatory, so DVC knows about the file!
def __call__(self, df):
self.df = df
def run(self):
print('HelloWorld')
Additionally adding option="outs"
or option="outs-no-cache"
could remove the redundant parameter
from zntrack.
Related Issues (20)
- check that `zntrack.meta.Environment` works properly
- `zntrack.deps`: Two external Nodes with the same parameters don't trigger graph.
- Raise an error in `deps` if not compatible
- Wrapper for Python functions
- Give names to external Nodes
- Organize `params.yaml` in groups
- send notification once a stage has finished HOT 4
- `zntrack.apply` can not pickle local object
- rename to `zntrack` to be consistent with other packages
- `deps_path` does not work with `outs_path`
- `dataclass` support
- Add current path when using `from_rev` HOT 1
- `in-memory` data access
- backend with `dud`
- `deps_path` support for dict
- `from_rev(remote="..")` does not work
- Make Exception for Name Attribute
- MongoDB dependency
- avoid `property` and `cached_property` call in graph building
- API to delete a room HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zntrack.