Giter Club home page Giter Club logo

Comments (17)

yashlamba avatar yashlamba commented on July 27, 2024

Hey! So I thought of trying to add a new model but am confused about a good starting point for the same. Can you suggest a model that you are/were thinking to add? This way I'll have a more clear way of starting up on the same. Thanks.

from dffml.

aghinsa avatar aghinsa commented on July 27, 2024

Is this still open? If yes what models are you looking to add?Also the tutorial link given is not working

from dffml.

pdxjohnny avatar pdxjohnny commented on July 27, 2024

Hi @aghinsa yes it's still open. I've updated the issue. We don't have any neural networks that aren't classifiers right now. So that would be the top priority. The quickest way to fix that is probably by copying the tensorflow based classifier and modifying it to use: https://www.tensorflow.org/versions/r1.14/api_docs/python/tf/estimator/DNNEstimator

or you could create a new package and use another machine learning framework other than tensorflow.

from dffml.

aghinsa avatar aghinsa commented on July 27, 2024

Thanks.I'll go through the links. I'll go with your suggestion as I'm more comfortable with tensorflow than other frameworks.
PS: Pretty sure I'll have lots of doubts.But I'm ready to invest time,so please to help with this.Also do we discuss related things here or on gitter(just found out about this).

from dffml.

pdxjohnny avatar pdxjohnny commented on July 27, 2024

Awesome! Yes I'm around to answer any questions. Thanks for the help!

from dffml.

aghinsa avatar aghinsa commented on July 27, 2024

So, I went through model/tensorflow/dffml_model_tensorflow/dnnc.py,to clarify things

  1. we want to add a regression model which trains on all features
  2. we aren't passing any separate model_fn to the estimator(are we?) rather using the hidden_units from config to specify the model
  3. should the model be such that warm_start is enabled?if yes, can i use the model_dir arg for that

from dffml.

pdxjohnny avatar pdxjohnny commented on July 27, 2024
  1. You'll probably want to make a class which subclasses from TensorflowModelContext (or maybe even DNNClassifierModelContext depending on how many methods you think don't need to be changed).
  2. Features we want to train on are passed to the __init__ method of the TensorflowModelContext class (I noticed #216, just so you know that the other method arguments aren't named correctly). We want to train on all features that we know how to make a feature column for using the tensorflow API. The feature columns are created in TensorflowModelContext.__init__, the names of the features we care about training on will be in self.features the feature volumes are self.feature_columns.
    A. You'll notice in the *_input_fn methods self.features is passed to repo.features in order to get a dict where the keys are feature names, and the values are the values of that feature.
  3. Yes, we're just using hidden units (for now, we could change this later, after you get the first version working, if you want).
  4. Yes, warm_start should be enabled. And yes, using self.model_dir_path would be the right way to do that.

def model(self):
"""
Generates or loads a model
"""
if self._model is not None:
return self._model
self.logger.debug(
"Loading model with classifications(%d): %r",
len(self.classifications),
self.classifications,
)
self._model = tensorflow.estimator.DNNClassifier(
feature_columns=list(self.feature_columns.values()),
hidden_units=self.parent.config.hidden,
n_classes=len(self.parent.config.classifications),
model_dir=self.model_dir_path,
)
return self._model

I'm sorry there's not a ton of comments in there, another good thing to do to start would be to copy the test file for the existing model to create a new test, and then run just that test.

$ cp tests/test_dnnc.py tests/test_dnnr.py
$ python3.7 setup.py test -s tests.test_dnnr

from dffml.

aditisingh2362 avatar aditisingh2362 commented on July 27, 2024

Is someone working on the issue? If not I would love to work on it.

from dffml.

rohit901 avatar rohit901 commented on July 27, 2024

Hi, I'm interested in working for this sub org under GSOC 2020, if you are planning to apply for GSOC 2020, could you please let me know where I can get started with so that I can start contributing. Thanks for your time.

from dffml.

sparkingdark avatar sparkingdark commented on July 27, 2024

I want to implement some neural network based models...
and i am a gsoc 2020 aspirant and want to work on this topic.

from dffml.

pdxjohnny avatar pdxjohnny commented on July 27, 2024

@rohit901 @darkdebo @aditisingh2362 Sorry for the late reply to those of you who commented on this a while ago, I'm sorry no one saw your comments. I've updated the issue, to point to the new tutorial. Let me know if you have any questions

from dffml.

purnimapatel avatar purnimapatel commented on July 27, 2024

Hello sir, I want to contribute in this project under GSOC 2020, please guide me any tutorial or videos to familiar with concept of adding ml models

from dffml.

pdxjohnny avatar pdxjohnny commented on July 27, 2024

Hello sir, I want to contribute in this project under GSOC 2020, please guide me any tutorial or videos to familiar with concept of adding ml models

@purnimapatel Please see the New Model Tutorial

from dffml.

purnimapatel avatar purnimapatel commented on July 27, 2024

@pdxjohnny thanks sir

from dffml.

spur19 avatar spur19 commented on July 27, 2024

Hey. I'd love to contribute to this issue, if it's still open. Are there any specific models you're looking to add? I had a few ideas, and would love to discuss them with you.
@pdxjohnny

from dffml.

Soumyajain29 avatar Soumyajain29 commented on July 27, 2024

Hi,
I am GSoC ' 2021 participant.
I'd love to contribute to this issue if it's still open. Are there any specific models you're looking to add? I am comfortable with python and PyTorch.
I am contributing for the very first time. I really appreciate any help/suggestion you can provide to get me started.

from dffml.

pdxjohnny avatar pdxjohnny commented on July 27, 2024

something that might be useful:

Mark Tenenholtz (@marktenenholtz) Tweeted:
TL;DR:

Tabular: XGBoost/LightGBM/RF
Time series: XGBoost/LightGBM/RF
Image: ResNet/EffNet
Text: RoBERTa
Audio: ResNet/EffNet

Your best bet is usually to start with these and then experiment from there.

Nothing in ML is an end-all-be-all!

^ https://mobile.twitter.com/marktenenholtz/status/1501905757842731014

from dffml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.