Value Error in Chapter 2
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 25.6k
- Forks
- 12.7k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I am following the code as per notebook and i am getting some dimension error in cell [81]:
```python
# let's try the full preprocessing pipeline on a few training instances
some_data = housing.iloc[:5]
some_labels = housing_labels.iloc[:5]
some_data_prepared = full_pipeline.transform(some_data)
print("Predictions:", lin_reg.predict(some_data_prepared))
```
```
ValueError: shapes (5,14) and (16,) not aligned: 14 (dim 1) != 16 (dim 0)
```
But when i try with the following code it is working fine:
```python
# let's try the full preprocessing pipeline on a few training instances
some_data = housing.iloc[:5]
some_labels = housing_labels.iloc[:5]
#some_data_prepared = full_pipeline.transform(some_data)
some_data_prepared = housing_prepared[:5]
print("Predictions:", lin_reg.predict(some_data_prepared))
```
Please help me getting this.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.