mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 00:20:20 +01:00
Fix typos in Linear Model Tutorial samples
1. test_file_name is undefined (should be test_file.name) 2. train_file_name is undefined (should be train_file.name) PiperOrigin-RevId: 173733442
This commit is contained in:
parent
abbab2430c
commit
3ff9c8d2af
|
|
@ -383,7 +383,7 @@ API:
|
||||||
```python
|
```python
|
||||||
# set num_epochs to None to get infinite stream of data.
|
# set num_epochs to None to get infinite stream of data.
|
||||||
m.train(
|
m.train(
|
||||||
input_fn=input_fn(train_file_name, num_epochs=None, shuffle=True),
|
input_fn=input_fn(train_file.name, num_epochs=None, shuffle=True),
|
||||||
steps=train_steps)
|
steps=train_steps)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -392,7 +392,7 @@ the labels of the holdout data:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
results = m.evaluate(
|
results = m.evaluate(
|
||||||
input_fn=input_fn(test_file_name, num_epochs=1, shuffle=False),
|
input_fn=input_fn(test_file.name, num_epochs=1, shuffle=False),
|
||||||
steps=None)
|
steps=None)
|
||||||
print("model directory = %s" % model_dir)
|
print("model directory = %s" % model_dir)
|
||||||
for key in sorted(results):
|
for key in sorted(results):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user