# Why is the modelName is None after graphSage is trained?

**URL:** <https://community.neo4j.com/t/why-is-the-modelname-is-none-after-graphsage-is-trained/46159>\
**Category:** Neo4j Graph Platform\
**Created:** [October 20, 2021, 7:03pm UTC](https://community.neo4j.com/t/why-is-the-modelname-is-none-after-graphsage-is-trained/46159 "2021-10-20T19:03:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingvisa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/lingvisa/32/8150_2.png) [@lingvisa](https://community.neo4j.com/u/lingvisa)\
**Post date:** [October 20, 2021, 7:03pm UTC](https://community.neo4j.com/t/why-is-the-modelname-is-none-after-graphsage-is-trained/46159/1 "2021-10-20T19:03:56Z")

</div>

GDS version: 1.7  
Neo4j: 4.3.4

```auto
CALL gds.beta.graphSage.train(
               'nodeGraph',
               {
                modelName: 'graphSageModel',
                aggregator:'pool',
                batchSize:32,
                activationFunction:'relu',
                epochs:3,
                searchDepth:3,
                sampleSizes:[25,10],
                learningRate:0.001,
                embeddingDimension:128,
                featureProperties:['degree', 'pageRank'],
                projectedFeatureDimension: 2,
                randomSeed: 46,
                concurrency: 4
              }
            )
            YIELD modelInfo as info
            RETURN info.name as modelName,
                   info.metrics.didConverge as didConverge,
                   info.metrics.ranEpochs as ranEpochs,
                   info.metrics.epochLosses as epochLosses
            
{'modelName': None, 'didConverge': False, 'ranEpochs': 3, 'epochLosses': [729.7173010597527, 674.4603356708892, 583.5583915437866]}

```

As you can see, the modelName is None. How to get the correct name? I didn't see the documentation on what fields the 'modelInfo' has in Neo4j's documentation.

---

<div class="post-metadata">

**Author:** ![lingvisa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/lingvisa/32/8150_2.png) [@lingvisa](https://community.neo4j.com/u/lingvisa)\
**Post date:** [October 20, 2021, 7:23pm UTC](https://community.neo4j.com/t/why-is-the-modelname-is-none-after-graphsage-is-trained/46159/2 "2021-10-20T19:23:11Z")

</div>

I figured out, the documentation isn't updated. info.name should be 'modelName'.
