Skip to content

Improve docstrings involving package structure - #11167

Merged
benoitsteiner merged 1 commit into
tensorflow:masterfrom
taehoonlee:improve_structure
Aug 1, 2017
Merged

benoitsteiner merged 1 commit into
tensorflow:masterfrom
taehoonlee:improve_structure

Conversation

@taehoonlee

Copy link
Copy Markdown
Contributor

This PR improves docstrings involving tf.learn. In the case of tensorflow_dataframe.py, I think it is better to put just DataFrame in order to keep consistency within one file. Except for the case, all the tf.learns are replaced by tf.contrib.learns.

@tensorflow-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@drpngx

drpngx commented Jun 30, 2017

Copy link
Copy Markdown
Contributor

Thank you for putting this together. I think that the original intent was to have "tf.learn" as a project name, not reflecting the actual package name. In that case we would want to leave it as is.

@martinwicke WDYT?

@martinwicke

Copy link
Copy Markdown
Member

The tf.learn name is confusing and we want to basically remove it completely. Using the package name is fine, but there's usually no need to. Ideally, we'd just get rid of the qualifier and talk about e.g., Estimator directly, or if clarification is required, tf.estimators.Estimator.

@taehoonlee
taehoonlee force-pushed the improve_structure branch 2 times, most recently from f7fbdef to 7beecee Compare July 2, 2017 09:07
@taehoonlee

Copy link
Copy Markdown
Contributor Author

I agree with the feedback, thank you @drpngx and @martinwicke! This PR has been revised as follows:

  • tf.learn -> Estimator under learn.estimators and layers.feature_column.
  • tf.learn.DataFrame -> DataFrame under learn.dataframe.
  • tf.learn/inflow -> inflow under installation shell scripts.
    I would like you to review again this version.

hash_bucket_size=1000)

Example of building tf.learn model using FeatureColumns:
Example of building `Estimator` model using FeatureColumns:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the grammar RE plurals, "A Estimator" etc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have been checked the grammar as follows:

$ grep -r "\`A Estimator\`" . | wc -l
      0
$ grep -r "\`Estimator\`" . | wc -l
      100
$ grep -r "\`Estimators\`" . | wc -l
      1

The "Estimator" is the most frequently used word among the above.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't sound good grammatically. I'm thinking that this should be an Example of building an Estimator, for instance.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I put "an" or plural forms on usages of Estimator.

@frankchn frankchn assigned drpngx and taehoonlee and unassigned drpngx Jul 10, 2017
@frankchn frankchn added the stat:awaiting response Status - Awaiting response from author label Jul 15, 2017
@taehoonlee
taehoonlee force-pushed the improve_structure branch 2 times, most recently from 7004e9c to 6161574 Compare July 15, 2017 09:34
@vrv

vrv commented Jul 24, 2017

Copy link
Copy Markdown

ping for @drpngx (or @martinwicke )

@vrv vrv added awaiting review Pull request awaiting review and removed stat:awaiting response Status - Awaiting response from author labels Jul 24, 2017
@drpngx

drpngx commented Jul 24, 2017 via email

Copy link
Copy Markdown
Contributor

@drpngx

drpngx commented Aug 1, 2017

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

@drpngx drpngx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@drpngx drpngx removed the awaiting review Pull request awaiting review label Aug 1, 2017
@benoitsteiner
benoitsteiner merged commit 48d38cc into tensorflow:master Aug 1, 2017
@taehoonlee
taehoonlee deleted the improve_structure branch August 2, 2017 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants